IP BASED AUTHENTICATION
Setting up a trunk to your call provider in A2Billing is very straightforward if you can use IP based authentication.
All you do is go to the “PROVIDERS / Trunk / Add Trunk” menu and create a new trunk. Here you will provide the protocol used to connect the trunk (SIP/IAX2) and the IP address provided by your call termination provider –
Because we’re using IP based authentication with our provider we don’t need to supply any more details.
USERNAME/PASSWORD BASED AUTHENTICATION
If we are using username/password authentication with our provider then we need to set our trunk up manually in Asterisk. We will give that trunk a name and then use that name, instead of the IP address, in the A2Billing trunk setup screen above.
Here’s an example of setting up a trunk with voip.ms. Many providers will be similar and provide the connection details you need to enter. These settings go in the file /etc/asterisk/sip.conf.
If you need to ‘register’ with your termination provider enter the register line under the existing [general] section –
And then enter the connection details below that. Here we are calling the trunk ‘voipms’. This will be used as the ‘IP Address’ in the A2Billing trunk set up page –
Next, apply those settings by running a ‘sip reload’ in Asterisk –
a2b100*CLI> sip reload
Now we can set up the trunk in A2Billing, using the name we specified above, instead of the IP address –