Caller ID from SPA-3102

I just had caller ID activated today so prior to this it hasn’t been an issue. I’m still not sure if it will be or not, but figured I would ask before it becomes one.

It’s been quite awhile since I set this up so I’m trying to remember how I did it! It seems that I have extension 99 & 199 from my SPA into Asterisk. When I get a call from my landline it shows up on my phones as Call From 199. What I want it to show is the CID. Without posting a long mess of config files, does anyone know what I should change? If you would need a config please let me know and I’ll post it up.


Well that was easy to fix. I just needed to find time to do so research! Seems all I needed to add was this:

exten => 99,1,GotoIf($["${CALLERIDNUM:0:2}" = “00”]?2:3)
exten => 99,2,SetCIDNum(${CALLERIDNUM:2})

Sorry to waste everyones time, maybe this will help someone sometime!