Upgrade 3CX to v18 and get it hosted free!

Wholesale Accounts Configuration – ComtelPBX

Author image

IP Authentication Support has been added to workwith AstPP


astpp-authorize.agi now checks for an IP match in the sip_users Realtime DB.

In order to work correctly, the sip name, id and username must begin with the wholesale accounts prefix:
311

Then, the accountcode will be taken and such account’s balance will be used to place the call.

The output of the check looks like this:

  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ==========================================================
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: SIP CALLID:      CC7998-712421534-D00-2B6221DB-E63911DC-AFCB81B5-3258BAA8@213.xxx.xxx.xxx
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: SIP UA:           Deltathree-SIP-Stack-v1.0
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: SIP CHANNEL:      SIP/5060-b770fd40
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: SIP CALLING PRES: 0
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ----------------------------------------------------------
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: IP:               213.xxx.xxx.xxx
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: IP CHECK:         0
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ----------------------------------------------------------
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: CONTEXT: ibtrunkcustomers
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Current Site name ( CDR user field ): comtel-networks
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ----------------------------------------------------------
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Loading Outbound Config:
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Loading Billing Config: comtel-networks
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ----------------------------------------------------------
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Loaded Rating DB: rating
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Loaded Billing DB: billing
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: ==========================================================
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Account: comtelnetworks
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Prepaid Credits: 3025.95
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Charged Debits:  2614.27
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Paid Balance: 411.68
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Balance updated...
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Credit Limit: 0.00
  ==  astpp-authorize.agi|comtelnetworks|18774672877|inbound_toll: Available Credit: 411.68

For additional support, an entry can be included in the wholesale flat file:
/etc/asterisk/wholesale.conf

[w3110001]
language=en
type=peer
canreinvite=no
context=publicdialplanobd
host=204.xxx.xxx.xxx
insecure=very
dtmfmode=rfc2833
qualify=yes
disallow=all
;allow=ulaw
allow=g729
allow=g723


For any comments or further assistance, feel free to contact us:
max@comtel-networks.com


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.