Wholesale Accounts Configuration - ComtelPBX

Wholesale VOIP Providers
Provider Features
thinQ
API
Calling Card
Colocation
International A-Z
Metro Ethernet
Origination
Portal
Termination
Toll Free
E911

Details          
VoIP Innovations
API
Calling Card
Colocation
International A-Z
Metro Ethernet
Origination
Portal
Termination
Toll Free
E911

Details          
Telnyx
API
Calling Card
Colocation
International A-Z
Metro Ethernet
Origination
Portal
Termination
Toll Free
E911

Details          
Wholesale VoIP Provider
API
Calling Card
Colocation
International A-Z
Metro Ethernet
Origination
Portal
Termination
Toll Free
E911

Details          
API
Calling Card
Colocation
International A-Z
Metro Ethernet
Origination
Portal
Termination
Toll Free
E911

Details          
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
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
Created by: mglucksmann, Last modification: Mon 18 of Jun, 2012 (06:53 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+