IP Security Forum

Sicherheit im Internet => VoIP, PBX Manager => Topic started by: pbrille on Tuesday, 03.03.2009 10:42

Title: phonebook: name is not displayed on phone
Post by: pbrille on Tuesday, 03.03.2009 10:42
Hi,

I installed the geotek phonebook as given in the installation.pdf and it works very well so far. The one thing which doesn't work is that incoming calls are not shown with name but only with number.

To see what's wrong I enabled debug output in asterisk and that's what's shown when an incoming call arrives:

Code: [Select]
[Mar  3 10:33:15] WARNING[30010]: func_db.c:65 function_db_read: DB requires an argument, DB(<family>/<key>)
    -- Executing [123456789@isdn:2] Set("Zap/1-1", "CALLERID(name)=") in new stack

That's what my line in the extensions.conf looks like:
Code: [Select]
exten => 123456789,n,Set(CALLERID(name)=${DB(cidname/${CALLERIDNUM})})

uname -a output: Linux 2.6.24-19-server #1 SMP  x86_64 GNU/Linux

Thanks in Advance.
Title: Re: phonebook: name is not displayed on phone
Post by: pbrille on Tuesday, 03.03.2009 12:15
I find it out by myself. Maybe someone else has the same problem, so here the conclusion:

Replace:
exten => 123456789,n,Set(CALLERID(name)=${DB(cidname/${CALLERIDNUM})})
with:
exten => 123456789,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

Asterisk version is 1.4.21.2-BRIstuffed-0.4.0-RC3c
Title: Re: phonebook: name is not displayed on phone
Post by: admin on Wednesday, 04.03.2009 07:54
Hi pbrille,

thank you for posting the solution. Since Asterisk 1.4 the variable CALLERIDNUM is indeed depreciated and must indeed be replaced by CALLERID(num). I have updated the GEOTEK Phonebook documentation accordingly.

Greetings from Berlin!

Admin