[quote=“ianplain”]
Why not store the numbers in the astdb and then check if they are there or not.
unlimited numbers, a couple of lines of code.
Ian[/quote]
I don’t know how to do that yet.
Anyway the problem is solved. The analog line I had coming off the PBX did’n want to talk CallerID to the TDM400P card for some reason. A Vonage MTA did just fine so at least I am off an running.
This worked for me in Asterisk 1.4.17:
exten => s,1,NoOp(CallerID is …"${CALLERID(num)}")
exten => s,2,GotoIf($["${CALLERID(num)}" = “15552224444”]?100:300)