Positively Optimistic
2014-Jul-02  15:58 UTC
[asterisk-users] Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...
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>
Doug Lytle
2014-Jul-02  16:07 UTC
[asterisk-users] Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...
Positively Optimistic wrote:> 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..Differences between yours and mine: Yours: Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) Mine: Gotoif($["${LEN(${get-admin-password})}" < "1"]?2:4) Doug