[asterisk-users] Asterisk 1.6 (realtime) - Overwritten CallerID(num) Problem

Brett Woollum brett at woollum.com
Sun Nov 7 17:08:50 CST 2010


Hello, 

I am running Asterisk 1.6 with Realtime enabled for my SIP users and peers. The backend is a MySQL database running through the ODBC backend in Asterisk. At this point everything works in terms of phones registering, placing calls between them, etc. However, I am having a problem setting the Caller ID number whenever I am using the Realtime database for the SIP users/peers. If I use a static sip.conf configuration instead of the database, everything works fine. Unfortunately a static sip.conf file won't work in my application. 

In this example: 
exten => 412,1,Set(CALLERID(all)="TEST"<22222>) 
exten => 412,n,NoOp(CallerID(num) is: ${CALLERID(num)}) ;;;PS: This shows the correct number of "22222" on the CLI console... 
exten => 412,n,Dial(SIP/412) 

Whenever another phone calls extension 412, the call is forwarded to SIP/412 and should have "TEST" as the CallerID name and "22222" as the CallerID number. But, whenever I am using the realtime backend, the caller ID number always displays on the destination phone as that phone's username. Meaning, if phone SIP/412 receives the call from the example above, the caller ID name displayed is "TEST" but the caller ID number is always "412". 

What could be causing this? 


Brett Woollum 
Brett at Woollum.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101107/64d32d57/attachment.htm 


More information about the asterisk-users mailing list