Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu May 24, 2018 11:39 pm
Hosted Voice Broadcast

All times are UTC

Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Help configuring DID
PostPosted: Tue Jan 23, 2007 10:20 pm 

Joined: Thu May 04, 2006 6:14 am
Posts: 76
Location: Manta - Ecuador

I've one DID and can't make it works with a2billing. Any one have a small how to about did settings?

Best resgards,

 Post subject:
PostPosted: Wed Mar 07, 2007 12:59 pm 

Joined: Mon Dec 04, 2006 1:40 am
Posts: 14
What are you trying to do? Are you trying to bill one account when someone calls the did?

 Post subject:
PostPosted: Wed Mar 07, 2007 3:07 pm 

Joined: Thu May 04, 2006 6:14 am
Posts: 76
Location: Manta - Ecuador
Thank you, but is solved:

I can't get DID's from ipkall working with a2billing.

 Post subject:
PostPosted: Fri Oct 19, 2007 10:00 pm 

Joined: Thu May 04, 2006 6:14 am
Posts: 76
Location: Manta - Ecuador
razametal wrote:
Thank you, but is solved:

I can't get DID's from ipkall working with a2billing.

Solved :)

Here is who you can use the IPKALL free DID's with a2billing:

First of all sign up for a free DID at .

After your registration login to your account at

I will illustrate the sample with the DID 3604691449:

On ipkall settings be sure to have the following:

SIP Phone Number : 3604691449
SIP Proxy              : my.asteriskbox.hostname.or.ip.address
Email Address        : [email protected]
Password               : 1234
Seconds to Ring before Hang Up: 120

Now on the asterisk box:

Edit sip.conf :

Edit extensions.conf
exten => _X.,1,NoOp,${CALLERID(all)}
exten => _X.,2,DeadAGI(a2billing.php|2|did)
exten => _X.,3,Hangup()

Edit a2billing.conf
debug = 1
asterisk_version = 1_2
answer_call = NO
play_audio = YES
say_goodbye = NO
play_menulanguage = NO
force_language =
intro_prompt =
min_credit_2call = 0.05
min_duration_2bill = 0
notenoughcredit_cardnumber = YES
notenoughcredit_assign_newcardnumber_cid = YES
use_dnid = YES
no_auth_dnid = 2400,2300
number_try = 1
force_callplan_id  =
say_balance_after_auth = NO
say_balance_after_call = NO
say_rateinitial = NO
say_timetocall = NO
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = NO
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = YES
cid_auto_create_card = NO
cid_auto_create_card_len = 10
cid_auto_create_card_typepaid = POSTPAY
cid_auto_create_card_credit = 0
cid_auto_create_card_credit_limit = 1000
cid_auto_create_card_tariffgroup = 6
callerid_authentication_over_cardnumber = NO
sip_iax_friends = YES
sip_iax_pstn_direct_call_prefix = 9
sip_iax_pstn_direct_call = YES
ivr_voucher = YES
ivr_voucher_prefix = 8
jump_voucher_if_min_credit = NO
extracharge_did =
extracharge_fee =
dialcommand_param = "|45|HCL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = "|60|HrL(3600000:61000:30000)"
switchdialcommand = NO
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = YES
record_call = NO
monitor_formatfile = gsm
agi_force_currency =
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
callback_bill_1stleg_ifcall_notconnected = YES

It's time to go to a2billing admin panel:
-> Add DID Group
   Name :  Ipkall

-> Add DID
    DID                 3604691449
    BILLING            Free (You can charge for using it)
    START DATE     As default
    EXPIRY DATE    As default
    DIDGROUP        Ipkall
    COUNTRY          United States
    ACTIVATED       Yes

-> Add Destination
    DESTINATION     SIP/123456789 (this is the card number)
    ID CARD            1
    DID                   3604691449
    ACTIVATED        Yes
    PRIORITY           1
    VOIP_CALL         Yes

If you want to redirect it to your mobile device, the Destination must look like this:
-> Add Destination
    DESTINATION     0059399855139 (check the dial rules of the card used to make the call)
    ID CARD            1
    DID                   3604691449
    ACTIVATED        Yes
    PRIORITY           1
    VOIP_CALL         No

 Post subject: Re: Help configuring DID
PostPosted: Wed May 30, 2012 6:12 am 

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
Great post by razametal, it clearly explains how to get ipkall working with sip with a2billing.

I followed the instructions on the post and they work great for SIP, but not for IAX.

The reason it does not work for IAX is that when under IPKall, the equivalent under sip "SIP Phone Number:" for ipkall for iax is " IAX User Name: ", but the incoming call from ipkall does not authenticate, and since the a2billing account with the call has a password the call fails to authenticate unless the line with secret is removed which is not a good idea since the a2b account is also used to make calls.
The other difference is that when the sip calls comes in with the number that was entered in "SIP Phone Number", with IAX is comes with the string "s".

Getting IPkall to work under asterisk is not problem since I can create a user call ipkall, and use that user for the "IAX User name" in the ipkall gui, and then create a dial extension for the incoming call in the form exten => s,1,Dial(........

The difficult part is to how to get it to work with existing a2b accounts without having to delete the password associated with the account, and then how to create the DID.

For example in sip it works great, you only have to deal at the asterisk level one time to create the user [ipkall], and then for all other ipkall accounts everything can be done with a2b, one of the big difference in sip, and iax, is that in sip you can have a number for "SIP Phone Numer", and then in the sip.conf use [ipkall] as the account which is not a number, iax does not allow this, iax2 will simply look for the account that matches what is in "IAX User name" and then use that context.

In the equivalent iax, the ipkall user wil get ignored unless it is under "IAX User name".

How can the same be accomplish using iax, I mean getting ipkall iax to work under a2b with a2b accounts.
So in brief in iax with a2b we have 2 problems:
Problem 1, how to get it to work with existing a2b accounts solving the authentication problem.
Problem 2, how to map the did to an account since it comes only with an "s" within a context.

The sip guide provided by razametal it works really well for sip, I am looking for something equivalent for iax
If anyone knows how to get it working for iax, please provide a step by step guide.

 Post subject: Re: Help configuring DID
PostPosted: Sun Feb 23, 2014 4:10 am 

Joined: Sun Feb 23, 2014 3:26 am
Posts: 1

Guess Im posting on a 7 years old thread. Im new with a2billing. I have just installed it successfully on asterisk 11. I have got a free DID number from callcentric. I have successfully registered my a2billing server with callcentric and when I call I can hear asterisk demo IVR.

Now, I dont know how to integrate it with a2billing. Like how a2billing will recognize my DID, how to authenticate PIN/Anumber. Stuff like that. It will be great if somebody can suggest me a good tutorial on that. I didnt get much searching the net.

Thanks in advanced.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Voice Broadcast System

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group