A2Billing SIP trunk authentication can be performed via Digest (Username/Password) and via IP authentication. This article explains how to authenticate your SIP trunk in A2Billing using “Digest” Username/Password authentication.
A2Billing Username/Password based SIP authentication
When using username/password authentication on the SIP provider the SIP trunk has to be setup manually in Asterisk. We will give that SIP trunk a name and then use that name, instead of the IP address, in the A2Billing SIP trunk setup screen above.
Here’s an example of setting up A2Billing SIP trunk with Switch2VoIP. Many providers will be similar and provide all the connection details you need to enter. These settings go in the file /etc/asterisk/sip.conf.1. Login to A2Billing dashboard. 2. If your termination provider requires the ‘Register’ field enter the register line under the existing [general] section –
3. Then enter the SIP trunk settings details below. Here we are calling the trunk ‘switch2voip’. This will be used as the ‘IP Address’ in the A2Billing trunk set up page –
4. Next, apply those settings by running a ‘sip reload’ in Asterisk –
5. Now we can set up the trunk in A2Billing, using the name we specified above, instead of the IP address –