login | register
Wed 03 of Dec, 2008 [03:03 UTC]

voip-info.org

History

CallerID

Created by: drbob,Last modification on Tue 30 of Oct, 2007 [00:03 UTC] by lesnet
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.

  • 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.
On ISDN PRI lines (US NI-2 type) Callerid name information CNAM is transmitted in a separate FACILITY IE. some time AFTER the initial SETUP message. If you are using CNAM in your dialplan make sure to insert a wait statement before using the calleridname variable. Otherwise CALLERIDNAME will not be populated initially.

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:


Comments

Comments Filter
222

333

by jcretegny, Friday 20 of July, 2007 [15:52:32 UTC]
Hello,

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)


222

333

by jcretegny, Friday 20 of July, 2007 [14:21:31 UTC]
Hello,

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)


222

333US Reverse Lookup AGI + MySQL

by brianba, Wednesday 09 of May, 2007 [00:10:27 UTC]
Just wanted to point out a recent addition of the "US Reverse Lookup AGI + MySQL" script to the See Also links above. We modified (and many thanks to) Brad House's original US Reverse Lookup AGI to include local MySQL database caching support. Brad's script already had support for SQLite but we really wanted to utilize a MySQL table for easier integration with the rest of our Asterisk support tools.

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
222

333Re: How to add a lable behind the CallIDName

by Al_Berto, Monday 01 of January, 2007 [20:25:23 UTC]
A quick correction: The Set() parameter should not contain quotation marks. And you could get problems with various phones if your CallerID string is too long, so you'd probably be better of with something like:<br><br>
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})

222

333Re: How to add a lable behind the CallIDName

by chandave, Thursday 14 of December, 2006 [05:39:27 UTC]
If line-1 is associated with extension 100:

exten => 100,1,Set(CALLERID(name)="Line 1: ${CALLERID(name)}")
exten => 100,n,Dial(SIP/100)

See ya...

d.c.
222

333How to add a lable behind the CallIDName

by rogerluo, Wednesday 13 of December, 2006 [18:29:09 UTC]
Situation:
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
222

333Set outgoing caller id?

by bantic, Sunday 12 of February, 2006 [22:10:44 UTC]
Does anyone know how to set outgoing caller id (i.e., in the contents of a .call file) ? I tried setting the Caller ID in the call file, but it didn't appear when I used it to call my cell phone.

thanks,
cory
222

333broken out of the box

by memeyou, Friday 16 of September, 2005 [02:02:00 UTC]
I wasen't getting anything along the lines of callerID data so I used zmonitor 1 -f file.raw and mailed myself the converted wav and the audio seemed way louder than my music normally was. So, I set the rxgain to -10 and voila! perfect callerId data. (:biggrin:)

I was using an ambient x100p clone in Hawaii.
222

333CallerID with QuadBRI and ISDN-2/BRI KPN The Netherlands

by sjcjonker, Wednesday 22 of June, 2005 [20:13:37 UTC]
To get outgoing callerid to work with a Junghanns QuadBRI with a KPN ISDN BRI line in the netherlands I had to set:

prilocaldialplan=unknown in zapata.conf to get it to work.

Good Luck!
222

333To block

by flobi, Monday 17 of January, 2005 [17:14:45 UTC]
Why not just set ${CALLERIDNUM} (check that var name first) to "UNAVAILABLE" before dialing, i.e.

exten=_NXXXXXX,1,SetVar(CALLERIDNUM=UNAVAILABLE)
exten=_NXXXXXX,2,Dial(SIP/${EXTEN})