<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Have you tried without the double quotes ?<br>as :<br> exten => _417XX,n,GotoIf($[$[${CallerIDNum} > 41799] | $[${CallerIDNum} < 41700]]?notfromlocal:)<br><div><span><br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> James B. Byrne <byrnejb@harte-lyne.ca><br> <b><span style="font-weight: bold;">To:</span></b> asterisk-users@lists.digium.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 24, 2013 10:14 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users] What is my syntax error here?<br> </font>
</div> <div class="y_msg_container"><br><br>On Wed, July 24, 2013 10:33, James B. Byrne wrote:<br>> Additional data:<br>><br>> Arch = x86_64<br>> OS = CentOS-6.4 (freepbx)<br>> Asterisk = 11.4<br>> FreePBX = 2.11.0.4<br>. . .<br>><br>> So my question is simple. What error in syntax have I committed here?<br>> I expect that CallerIDNum == 41712 in the check:<br>><br>> exten => _417XX,n,GotoIf(<br>> $[$["${CallerIDNum}" > "41799"] |<br>> $["${CallerIDNum}" < "41700"]]?notfromlocal:)<br>><br>> But I am getting a message say there is no variable to check. So what<br>> I have done that is wrong?<br>><br><br>As suggested I made these additions to the dial plan:<br><br>; Line 8<br>exten => _417XX,n,NoOp($["${CallerIDNum}" > "41799"])<br><br>; Line 9<br>exten => _417XX,n,NoOp($["${CallerIDNum}" < "41700"])<br><br>; Line 10<br>exten =>
_417XX,n,NoOp($["${CallerIDNum}" > "41799"] |<br>$["${CallerIDNum}" < "41700"])<br><br>; Line 11<br>exten => _417XX,n,NoOp($["${CallerIDNum}" > "41799"] |<br>$["${CallerIDNum}" < "41700"])<br><br>; Line 12<br>exten => _417XX,n,NoOp($[$["${CallerIDNum}" > "41799"] ||<br>$["${CallerIDNum}" < "41700"]])<br><br>; Line 13<br>exten => _417XX,n,NoOp($[$["${CallerIDNum}" > "41799"] ||<br>$["${CallerIDNum}" < "41700"]])<br><br>; Line 14 - original<br>exten => _417XX,n,GotoIf(<br> $[$["${CallerIDNum}" > "41799"] ||<br> $["${CallerIDNum}" < "41700"]]?notfromlocal:)<br><br>Which changed nothing but the results did provide a clue. Taking the<br>earlier suggestion I ensured that my original line did not contain<br>line breaks, which I cannot reproduce in this email because of its<br>length. However, putting everything on one line caused the missing<br>variable error to disappear.<br><br>exten
=> _417XX,n,GotoIf($[$["${CallerIDNum}" > "41799"] ||<br>$["${CallerIDNum}" < "41700"]]?notfromlocal:)<br><br>Thank you both for the help. I much appreciate it.<br><br><br>-- <br>*** E-Mail is NOT a SECURE channel ***<br>James B. Byrne mailto:<a ymailto="mailto:ByrneJB@Harte-Lyne.ca" href="mailto:ByrneJB@Harte-Lyne.ca">ByrneJB@Harte-Lyne.ca</a><br>Harte & Lyne Limited <a href="http://www.harte-lyne.ca/" target="_blank">http://www.harte-lyne.ca</a><br>9 Brockley Drive vox: +1 905 561 1241<br>Hamilton, Ontario fax: +1 905 561 0757<br>Canada L8E 3C3<br><br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a
href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com </a>--<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></div> </div> </div> </div></body></html>