In this series of articles I’m going to run through how to get up your a2billing system up and running. A2billing is an opensource billing application for Asterisk and can be used in many different ways – I’ll be documenting just some examples 🙂
Some of this setup will depend how you have your main configuration file (/etc/asterisk/a2billing.conf) configured. I will not be discussing that here. Also some of the setup may rely on FreePBX and A2billing being setup to work together.
All of this documentation was created on a sysadminman Asterisk/FreePBX/A2billing VPS. See here for details – http://sysadminman.net/uk-voip-vps.html
Setting up a trunk
We need to setup a trunk to be used for our outbound calls. Obviously you can setup more than one trunk and route calls to different destinations via different trunks.
I will be using the trunk that I configured in FreePBX here – http://sysadminman.net/blog/2009/getting-started-with-freepbx-part-1-setting-up-a-trunk-335. As the main settings for the trunk have been setup in FreePBX we can just call the trunk by it’s name in A2Billing. This trunk is with a provider called callwithus.
To setup a trunk –
Click on TRUNK on the left hand main menu
The next thing I’m going to do is create a “Trunk Provider”. This is not essential (we can create a trunk with out creating a “provider”) but will be useful when we have many trunks and want to group them together)
So, click on “Create Provider” and give your provider a name and description – I’m using callwithus. The click Confirm Data
Now I’m going to setup the actual trunk. So click on “Add Trunk”
VOIP-PROVIDER is the one we just created
LABEL is just a text label identifying the trunk
PROVIDER TECHNOLOGY is sip (although it’s also possible to use IAX2 with callwithus I used SIP)
PROVIDER IP is the name of the trunk that I created in FreePBX here. It’s not essential to use a precreated trunk I just like all my trunks created in a single place – FreePBX
and the click Confirm Data
And that’s it. Our trunk is ready to use. We can see this by click on List Trunk