Saturday, January 3, 2009

How to install A2billing on Trixbox

To do that I used a script made by a2billing2asterisk.googlepages.com
with the following instructions from the author (for 6$):


cd /usr/src
wget a2billing2asterisk.googlepages.com/a2
chmod +x a2
./a2
afterward I did the procedure from http://www.sureteq.com/asterisk/a2bv1.2.3.htm#3.0_-_a2billing_understood to get the IVR menu
The first thing we need to do is create an extension for a2billing. SSH to your Trixbox and do the following:

nano /etc/asterisk/extensions_custom.conf

Under the [from-internal-custom] context, add the following:

exten => 225,1,Answerexten => 225,2,Wait,2exten => 225,3,DeadAGI,a2billing.phpexten => 225,4,Wait,2exten => 225,5,Hangup

CTRL+X to exit nano, and then press Y when asked to save.

This creates extension 225 which answers the call, waits 2 seconds, and then passes the call to the a2billing application. You can change the 225 to whatever extension you prefer, but make sure it is an unused extension in your dial plan.

Type 'asterisk -r' to connect to Asterisk and do an 'extensions reload' to reload your extension files. You can now dial extension 225. You should hear a lady asking for your complete PIN number. The PIN number is one of your created customer's card number. Enter in the 10 digit number, and it now asks you for the number you would like to dial followed by the # key.

1 comment: