On Thu, 2007-10-25 at 11:35 -0500, Tilghman Lesher wrote:
> On Thursday 25 October 2007 10:36:02 Brett Crapser wrote:
> > [outbound]
> > exten=> _X.,1,GotoIf([${CALLERID(num)} == "3000"]?path0|1)
> 
> exten=> _X.,1,GotoIf([${CALLERID(num)} = "3000"]?path0,${EXTEN},1)
> 
> > exten=> _X.,2,GotoIf([${CALLERID(num)} == "3001"]?path1|1)
> 
> exten=> _X.,2,GotoIf([${CALLERID(num)} = "3001"]?path1,${EXTEN},1)
> 
> > exten=> _X.,3,Playback(tt-monkeys)
> > exten=> _X.,4,Hangup
> 
> You do not need double '=' and you were missing the ${EXTEN}.  Also, '|'
> separating arguments is now deprecated.
> 

Although.... late model expression parser code allows ==, and treats it
like =,
and, & and && are interchangeable, and so also | and ||.

murf

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to