Sicherheit im Internet > VoIP, PBX Manager

phonebook: name is not displayed on phone



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: ---[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

--- End code ---

That's what my line in the extensions.conf looks like:

--- Code: ---exten => 123456789,n,Set(CALLERID(name)=${DB(cidname/${CALLERIDNUM})})

--- End code ---

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

Thanks in Advance.

I find it out by myself. Maybe someone else has the same problem, so here the conclusion:

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

Asterisk version is

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!



[0] Message Index

Go to full version