[asterisk-users] Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...

Doug Lytle support at drdos.info
Thu Jul 3 06:28:41 CDT 2014


Steve Edwards wrote:
>
> So are the quotes now a requirement?

It looks like quotes are only a requirement on strings.  In the original 
post, the only difference I can see, compared to the snippet of my 
dialplan without quoting, is that I'm not using the != comparison.  
Whereas it seems to work okay on strings:


exten => s,n,GotoIf($[${LEN(${source})} = 4 ]?4digits,1:6)
exten => s,n,GotoIf($[${LEN(${source})} = 10 ]?10digits,1:7)
exten => s,n,GotoIf($[${LEN(${source})} = 14 ]?14digits,1:7)

exten => s,n,GotoIf($["${get-room-num}" = "99999"]?s-verify,1:s,5)

exten => s,n,GotoIf($["${TODAY}" = "${ISTODAY}"]?s,7:s,5)
exten => s,n,GotoIf($["${set.transfer}" = "N"]?s,17:s,16)
exten => 3,1,GotoIf($["${set.transfer}" = "N"]?i,1:3,2)

Doug



More information about the asterisk-users mailing list