This post assumes you have completed the steps here – http://sysadminman.net/blog/2011/a2b100-quick-start-guide-to-wholesale-with-a2billing-3127. These are required steps for calling card access also.
After the steps above have been completed all we need to do is create an DDI access number so that we can call in to our A2Billing system
For testing I’m going to use a free DDI number from here – http://www.ukddi.com/
Once you’ve requested your DDI number you should set the destination to be your A2Billing server. I always set the destination number to be the DDI number in international format, as shown here –
Now in Asterisk we need to pass that incoming call through to A2Billing.
We do that by editing the /etc/asterisk/extensions.conf file. I’m going to add the following lines under the [default] section which is where our incoming calls will go.
The section below matches all numbers starting 441604 and passes them to A2Billing as a calling card access number call. Because UKDDI passes the CLID with a plus (+) on the front there are a couple of lines to remove that –
If your DDI number provider doesn’t put a plus (+) on the front and we don’t need to remove it you could just have had –
Now we just need to reload the Asterisk dial plan by running –
Now if I call the access number I am prompted for my “complete pin number”, this is the “ACCOUNT NUMBER” in A2Billing. If I enter this I am then prompted for the number I wish to call and told how much credit I have left.
If my caller ID is presented then next time I call the access number I will not need to enter my account number, the call will be authorised based on my caller ID.
If you want to enable/disable any of the voice prompts, or stop caller ID based authentication then these settings can be found in A2Billing Admin, SYSTEM SETTINGS, Global List, agi-conf1.
The option for caller id authentication is called “cid_enable”