[asterisk-users] GotoIf CALLERID(num)
Joseph
syscon780 at gmail.com
Wed Dec 29 23:41:17 UTC 2010
No, it is not a space issue, I tried:
exten => s,3,GotoIf($["${CALLERID(num)}"="4715665"]?4:6)
but it still goes to priority "6"
--
Joseph
On 12/29/10 16:23, Joel Maslak wrote:
>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
More information about the asterisk-users
mailing list