My problem is with this "if (uri=~"^sip:[1-9]*@.*") {". <br>If i put "sip:[0-9]" its OK, but with "sip:[1-9]" it doesn`t work.<br>Does anybody know why?<br>thanks.<br> <br><br><div><span class="gmail_quote">
2007/4/19, Carlos Ribas <<a href="mailto:caduribas@gmail.com">caduribas@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I need to block calls that they start with number 0. <br>i did this, but it`s not OK: <br>if (uri=~"^sip:[1-9]*@.*") {<br> rewritehost("<a href="http://10.0.0.10" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.0.0.10</a>");<br> log("access ok");
<br> route(1);<br> break;<br>};<br><br>if (uri=~"^sip:0[1-9]*@.*") {<br> log("access deny");<br> break;<br>};<br><br> How can i do this? <br>
</blockquote></div><br><br clear="all"><br>-- <br>--------------------------------<br>Carlos Eduardo Ribas<br>Fone: 9986-4892