[asterisk-users] GotoIf CALLERID(num)
Joel Maslak
jmaslak at antelope.net
Wed Dec 29 23:23:35 UTC 2010
Get rid of the spaces before and after the equal sign.
On Wed, Dec 29, 2010 at 4:15 PM, Joseph <syscon780 at gmail.com> wrote:
> 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
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list