Caller ID allows the person being called to see the number (and sometimes the name) of the person calling them, when they have the correct equipment to receive the callerid information. Caller id is often an added value (i.e extra cost) service from your telco. You can usually withhold sending of the caller id on outgoing calls by dialling a special code before the number.
There are many different callerid systems in use around the world. The callerid FAQ gives a lot of useful information.
i.e.:
exten => _X.,1,NoOp,${CALLERIDNAME} ; will be empty. - FACILITY IE has not been received yet.
exten => _X.,2,Wait(1) ; wait for the CO to find the name in the database
exten => _X.,3,NoOp,${CALLERIDNAME} ; now it shows the name
If you are using a VOIP provider, the CID information is sent with the call setup. Note however that most VOIP providers will not send a caller ID name, only the number. This is because they do not have name exchange agreements in place. If you want to get caller ID information in this case, use a reverse number lookup tool. Take a look at smartCID from www.generationd.com as an example.
See also:
There are many different callerid systems in use around the world. The callerid FAQ gives a lot of useful information.
- Note that on the PSTN, CNAM (Caller NAMe) data is looked up via caller ID digit information out of a database by the serving CO. It cannot be set by the user.
i.e.:
exten => _X.,1,NoOp,${CALLERIDNAME} ; will be empty. - FACILITY IE has not been received yet.
exten => _X.,2,Wait(1) ; wait for the CO to find the name in the database
exten => _X.,3,NoOp,${CALLERIDNAME} ; now it shows the name
If you are using a VOIP provider, the CID information is sent with the call setup. Note however that most VOIP providers will not send a caller ID name, only the number. This is because they do not have name exchange agreements in place. If you want to get caller ID information in this case, use a reverse number lookup tool. Take a look at smartCID from www.generationd.com as an example.
See also:
- ANI - automatic number identification
- Asterisk hardware - for hardware that supports caller id
- Asterisk and UK Caller ID
- Asterisk and Australian Caller ID
- Caller Name DIP API (Fast AGI/ AJAX)
- Caller ID lookup script (reverse phone number lookup) and local database
- US Reverse Lookup AGI - 411.com, google.com, and anywho.com with caching and NANPA lookups
- US Reverse Lookup AGI + MySQL - Revision of the above script to include MySQL caching as well
- Asterisk bounty non-Bellcore-CLID
- Swedish CLID spec
- The Caller ID FAQ
- CID Issues with some Siemens DECT phones in France

Comments
333
I have a big problem with my Asterisk Server in France (with France Telecom). The fonction SetCIDNum does not work. The people see only the main number (BRI). I don't understand because i use this function in Switzerland and that's work.
This my dialpan :
exten => _0.,1,SetCallerPres(allowed)
exten => _0.,2,SetCIDNum(0140411180)
exten => _0.,3,Dial(mISDN/g:ISDN/${EXTEN:1}/:s)
Normally I should see "0140411180" like CID and i see "0140411177" which is the main number (BRI)
333
I have a big problem with my Asterisk Server in France (with France Telecom). The fonction SetCIDNum does not work. The people see only the main number (BRI). I don't understand because i use this function in Switzerland and that's work.
This my dialpan :
exten => _0.,1,SetCallerPres(allowed)
exten => _0.,2,SetCIDNum(0140411180)
exten => _0.,3,Dial(mISDN/g:ISDN/${EXTEN:1}/:s)
Normally I should see "0140411180" like CID and i see "0140411177" which is the main number (BRI)
333US Reverse Lookup AGI + MySQL
We also added a new feature in the way of a "perm" int column in the MySQL table. You can use this to mark a cached entry so as not be subject to the built-in (90 day) cache expiration. Very useful if you code an interface to modify the callerid information and don't want it to be overwritten.
All the information you should need is in the script's header... installation is a snap really... just the one script file and a simple (3 line) mod to your dial context (in extensions.conf).
Enjoy!
-b
333Re: How to add a lable behind the CallIDName
Set(CALLERID(name)=1 ${CALLERID(name)})<br>
or cut the CallerID off a bit<br>
Set(CALLERID(name)=1 ${CALLERID(name):0:15})<br>
or even<br>
Set(CALLERID(name)=1 ${CALLERID(name):-15})
333Re: How to add a lable behind the CallIDName
exten => 100,1,Set(CALLERID(name)="Line 1: ${CALLERID(name)}")
exten => 100,n,Dial(SIP/100)
See ya...
d.c.
333How to add a lable behind the CallIDName
John Smith from phone 1-234-567-8900 called me at line-1. The CallID show like this:
John Smith
1-234-567-8900
What I want to achieve is to add a lable so it looks like:
Line-1: John Smith
1-234-567-8900
How to achieve this goal?
Thanks.
Roger
333Set outgoing caller id?
thanks,
cory
333broken out of the box
I was using an ambient x100p clone in Hawaii.
333CallerID with QuadBRI and ISDN-2/BRI KPN The Netherlands
prilocaldialplan=unknown in zapata.conf to get it to work.
Good Luck!
333To block
exten=_NXXXXXX,1,SetVar(CALLERIDNUM=UNAVAILABLE)
exten=_NXXXXXX,2,Dial(SIP/${EXTEN})