If you register SIP devices to A2Billing then at some point you will no doubt want to set what outbound caller ID is presented when a call is made. There are a lot of different settings around the caller ID and lots of different setups depending on what you want to do. Below are a few examples.
This guide was written using a SysAdminMan VPS, details of this can be found here – http://sysadminman.net/sysadminman-freepbx-a2billing-hosting.html
Also the following is assumed –
- A2Billing is already set up and working to make outbound calls
- Your call provider allows you to pass any caller ID – this is not always the case
What’s the default for a SIP client?
This is what happens if we make no changes to the settings on the SysAdminMan template. Here are the default settings and the customer account details –
In agi-conf2 (the default for SIP clients) there are 3 settings relating to caller ID.
auto_setcallerid = Yes | force_callerid = [BLANK] | cid_sanitize = No
The account number for the A2Billing customer we are using is 7599833548 –
In the a2billing voip account settings we have nothing set –
and in the A2Billing customer account we have no caller IDs set –
Now if we make a call from a SIP client (I’m using Zoiper) the A2Billing account number will be presented as the called ID, in this case “7599833548”. Actually if I call my mobile in the UK I get “+7599833548”. I think this is because the mobile provider is seeing it as a number in an international format.
In Zoiper (and in other clients it may be called something different) we have a setting for caller ID name –
You should be aware though that, as far as Asterisk and A2Billing is concerned, caller ID number and caller ID name or 2 separate things. If we set the caller ID we want to be displayed in the “Caller ID Name” box this is NOT the number that will be presented when we make a call. However, look out for another blog post soon that will show how to do this!
Presenting a caller ID
Often what you will want to do is present a specific caller ID for a customer, or allow them to do it themselves.
There are a couple of ways to do this, this is the way I would recommend as being the most flexible.
In A2Billing / Settings / agi-conf2 / set cid_sanitize = ‘CID’ –
Now in the A2Billing customer account enter the caller ID that you want them to use –
Now when I make a call I get “441604283000” presented as my caller ID.
And if I want to allow the customer to set their own caller ID I can go to A2Billing / Customers / Groups / Default – and allow the customer to see the Caller ID menu –
They will then see the Caller ID menu page in the customer GUI and be able to add new ones. If they add multiple entries I think the last one will be used –