[asterisk-users] GotoIf CALLERID(num)

Adolphe Cher-aime acheraime at gmail.com
Wed Dec 29 23:54:51 UTC 2010


I don't think you need the quotes. Try without them



Adolphe Cher-aime
 From my Iphone

On Dec 29, 2010, at 6:41 PM, Joseph <syscon780 at gmail.com> wrote:

> 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
>
> --
> _____________________________________________________________________
> -- 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