[asterisk-users] GotoIf CALLERID(num)

Joseph syscon780 at gmail.com
Wed Dec 29 23:15:16 UTC 2010


I'm testing GotoIf($["${CALLERID(num) but I'm missing something as it is not working:

[office-open]
exten => s,1,Wait(1)
exten => s,2,Answer()

; for Caller ID is 471-5665, always signal congestion:
exten => s,3,GotoIf($["${CALLERID(num)}" = "4715665"]?4:6)
exten => s,4,Playtones(congestion)
exten => s,5,Congestion(5)

exten => s,6,SetMusicOnHold(default)
...

but it always goes to "s,6"

What am I missing?

-- 
Joseph



More information about the asterisk-users mailing list