Caller ID lost from PSTN -> extension

I’m probably doing something monumentally stupid, but caller id seems to be lost as a call transfers from the PSTN incoming to an internal extension.

extension to extension works ok.

I have the O’Reilly book, and I’ve looked for examples. It’s not clear to me if I have to do something explicit with LookupCIDName() or SetCIDNum() or ${CALLERIDNAME} in the dial plan. I would have expected this to work out of the box.

In my zapata.conf I have:

signalling=fxs_ks
context=TDM2400P/1/24
usecallerid=yes
cidsignalling=bell
cidstart=ring
hidecallerid=no
group=1
echocancel=yes
echocancelwhenbridged=yes
musiconhold=default
rxgain=0
txgain=0
channel=>24

My dialplan for extension dialing is:

exten => _1XXX,1,Answer()
; do i need this?
;exten => _1XXX,n,LookupCIDName()
exten => _1XXX,n,Dial(SIP/${EXTEN},15,tr)
exten => _1XXX,n,VoiceMail(u${EXTEN}@default)
exten => _1XXX,n+101,VoiceMail(b${EXTEN}@default)

Any hints for debugging this?

Regards,

billo

try the ‘o’ flag when Dial()ing, that preserves the 'o’riginal caller id…

LookupCIDName() does not affect the CID number but it does add a name to the number if you have the name set in the asterisk database. Useful asterisk database commands are: -

database show cidname
database put cidname

Well, I’m not sure what the problem was, but I reinstalled the kernel and asterisk from bare metal, copied my same configs into place, and now caller ID is working fine.

Thanks for the suggestions.