[asterisk-users] Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...
Positively Optimistic
positivelyoptimistic at gmail.com
Wed Jul 2 10:58:07 CDT 2014
Greetings,
I'm hoping that an extra pair of eyes might help me to solve a challenge...
Anyone have any idea why the following would not work? I'm trying to test
for a callerid value that is 4 digits in length..
exten => s,1,NoOp(CLID is ${CALLERID(all)})
exten => s,n,Gotoif($[${LEN(${CALLERID(number)})} != 4]?true)
exten => s,n,NoOp(Value is False)
exten => s,n,Hangup
exten => s,n(true),NoOp(Value is True)
exten => s,n,Hangup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140702/d5bfd018/attachment.html>
More information about the asterisk-users
mailing list