A2Billing video guide Part 3 – Access DDI, customers, test calls and some agi-conf
This is part 3 of the SysAdminMan video guide to getting started with A2Billing. In the previous videos we set up and trunk and a rate card. In this video we set up an access DDI number for calling card customers, we create a customer, and then place some test calls.
We also have a quick look at some of the agi-conf settings that affect how this call is handled.
The system used was a clean install of a SysAdminMan virtual server. You can find more details about this here - http://sysadminman.net/sysadminman-freepbx-a2billing-hosting.html
Last updated by .
Related posts:
- A2Billing video guide Part 1 – Creating a trunk
- A2Billing video guide Part 2 – Rates, Rate Cards and Call Plans
- A2Billing video guide Part 4 – Creating a SIP customer
SysAdminMan provides virtual PBX hosting based on Asterisk and Freeswitch.
Avaialble systems include FreePBX, PBX-in-a-Flash, Elastix, A2Billing and FusionPBX.
More details and prices can be found at sysadminman.net
Avaialble systems include FreePBX, PBX-in-a-Flash, Elastix, A2Billing and FusionPBX.
More details and prices can be found at sysadminman.net

Ali:
Hello Matt,
how do you MAP your UK DID number to FREE PBX which is I think is in local area IP .. I mean how do you map did to local IP add of your freePBX 10.100.50.20 ?
20 March 2012, 4:02 ammatt:
Hi Ali, do you mean how did I do it because 10.x.x.x is a private address? That was just for the documentation, it needs to be forward to an internet accessible address. If your Asterisk server is on a private address you’d need to set up NAT/port forwarding on your firewall to reach it.
20 March 2012, 7:03 amJames:
Hi matt
Great tutorial, well explained!! Thanks for that.
I have a problem,
(running elastix 2.2 with a2bill 1.9.4, Asterisk 1.8.7.0)
The trunk is ok, extensions too.
A2Billing answer the call
A2B said : Enter PIN Number
A2B said : You have credit…, please enter the destination You wish to call and press #
I press 2000#
A2B said : Everyone is busy/congested at this time
and before that the log said:
— Executing [s@macro-dialout-trunk:22] Set(“IAX2/trunk1-461″, “pre_num=AMP:Local/”) in new stack
— Executing [s@macro-dialout-trunk:23] Set(“IAX2/trunk1-461″, “the_num=OUTNUM”) in new stack
— Executing [s@macro-dialout-trunk:24] Set(“IAX2/trunk1-461″, “post_num=@a2billing/n”) in new stack
— Executing [s@macro-dialout-trunk:25] GotoIf(“IAX2/trunk1-461″, “1?outnum:skipoutnum”) in new stack
— Goto (macro-dialout-trunk,s,26)
— Executing [s@macro-dialout-trunk:26] Set(“IAX2/trunk1-461″, “the_num=20003|60|HRrL(59400000:61000:30000)”) in new stack
— Executing [s@macro-dialout-trunk:27] Dial(“IAX2/trunk1-461″, “Local/20003|60|HRrL(59400000:61000:30000)@a2billing/n,300,tr”) in new stack
— Called Local/20003|60|HRrL(59400000:61000:30000)@a2billing/n
— Executing [20003|60|HRrL(59400000:61000:30000)@a2billing:1] NoOp(“Local/20003|60|HRrL(59400000:61000:30000)@a2billing-7f90;2″, “A2Billing Start”) in new stack
— Executing [20003|60|HRrL(59400000:61000:30000)@a2billing:2] DeadAGI(“Local/20003|60|HRrL(59400000:61000:30000)@a2billing-7f90;2″, “a2billing.php|1″) in new stack
— Executing [20003|60|HRrL(59400000:61000:30000)@a2billing:3] Hangup(“Local/20003|60|HRrL(59400000:61000:30000)@a2billing-7f90;2″, “”) in new stack
== Spawn extension (a2billing, 20003|60|HRrL(59400000:61000:30000), 3) exited non-zero on ‘Local/20003|60|HRrL(59400000:61000:30000)@a2billing-7f90;2′
— No one is available to answer at this time (1:0/0/0)
I have set a custom trunk with a Custom Dial String like that “Local/$OUTNUM$@a2billing/n” to redirect my call through a2b!
17 April 2012, 4:11 pmIf you can help me with this problem i’d be gratefull. Really gratefull! Thanks a lot in advance!
James
matt:
Hi James,
I’m a bit confused about what you’re trying to do. Are you trying to call a2billing and ring x2000, or call out from x2000 via a2billing?
17 April 2012, 5:48 pmJames:
I’m trying to call a2billing and ring x2000!
18 April 2012, 7:38 amJames:
If think I have a pipe problem cause i’m under Ast1.8
18 April 2012, 8:29 amlike in this line:
– Executing [20003|60|HRrL(59400000:61000:30000)@a2billing:2] DeadAGI(“Local/20003|60|HRrL(59400000:61000:30000)@a2billing-c25b;2″, “a2billing.php|1″) in new stack
Do I only have to modify the Asterisk Version Global in A2B?
matt:
Yes, changing the asterisk version setting in a2billing to 1_6 should sort that out (I don’t think 1_8 works yet), although probably best to change the dial plan to commas to avoid confusion in the future.
18 April 2012, 10:33 amJames:
I change to 1_6, already but the commas comes with the variables. Should I change the agi?
18 April 2012, 1:15 pmLike in the line above I don’t see where this part come from “3|60|HRrL(59400000:61000:30000)” quite strange
Besides the call still asking me my pin number after a2b tells me how much minutes left (after I entered 2000#)
Thanks for your consideration matt!!!
James:
Don’t have the problem of pipe anymore but the “3″ next to the number to call still here and I think that’s why it is not working.. Do you have an idea on how erase it?
18 April 2012, 2:27 pmmatt:
It’s not just the # that you’re dialling at the end of the number is it?
18 April 2012, 2:28 pmJames:
Found it, was using french keyboard and # was understand like 3 … Ringing now thkx for your help!! Continue like that man your tutorial are perfect!
18 April 2012, 2:36 pmmatt:
Thanks for your kind words, glad you found them useful – Matt
18 April 2012, 2:37 pm