[Solved]CallerID Name not showing up


I put few CallerIDnum and CallerIDname in the Asterisk 1.4 database. On CLI I can see those records by “database show cidname”. But when call comes in the caller name doesn’t show up on the phone(x-lite). Here is my incoming context:

exten => s,1,NoOp(Incoming call from # ${CALLERID(num)})
exten => s,n,Set(${CALLERID(name)}=${DB(cidname/${CALLERID(num)})}) 
exten => s,n,Dial(SIP/1002,10,r)
exten => s,n,Hangup()

Please help me to correct it.



Changed line 2 as:

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