[asterisk-users] Advanced Dial Plan

Steve Murphy murf at parsetree.com
Thu Oct 25 15:12:52 CDT 2007


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3239 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071025/bc0da731/attachment.bin 


More information about the asterisk-users mailing list