<div dir="ltr">Dear Sir,<br><br>Let&#39;s forget the alphanumeric extension name...I troed to dial an extension where the username is 123456 and I got the same issue...The system ente in a loop<br><br>Regards<br><br><div class="gmail_quote">
On Thu, Jan 29, 2009 at 11:22 AM, Raúl Alexis Betancor Santana <span dir="ltr">&lt;<a href="mailto:rabs@dimension-virtual.com">rabs@dimension-virtual.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Jueves, 29 de Enero de 2009 08:57, michel freiha escribió:<br>
<div class="Ih2E3d">&gt; Hello Bogdan,<br>
&gt;<br>
&gt; Kindly note that I tried the following method to configure local calls:<br>
&gt;<br>
&gt; if($rU =~ &quot;^111&quot; || $rU =~ &quot;^011.*&quot; || $rU =~ &quot;^00.*&quot; || $rU =~ &quot;^[+].*&quot; )<br>
&gt; {<br>
&gt; if(!cr_route(&quot;default&quot;, &quot;0&quot;, &quot;$rU&quot;, &quot;$rU&quot;, &quot;call_id&quot;)){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;403&quot;, &quot;Not allowed&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp;} else {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# In cas of failure, re-route the request<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_on_failure(&quot;1&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Relay the request to the gateway<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t_relay();<br>
&gt; &nbsp; &nbsp;}<br>
&gt;<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; else<br>
&gt; {<br>
&gt;<br>
&gt; xlog(&quot;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;);<br>
&gt; &nbsp; &nbsp; route(1);<br>
&gt; }<br>
&gt; }<br>
&gt;<br>
&gt; When making a Long distance call that begis with 00 everything looks fine<br>
&gt; and the call is routed correctly to its destination...The issue is when<br>
&gt; trying a call that do not begin by 00 like calling &quot;micho&quot;...The system<br>
&gt; access the else { xlog(&quot;XXXXXXXX.....and it enter inside a loop and nothing<br>
&gt; will happen on the other side...<br>
<br>
</div>The system always will go to the else statement, because in your if statement<br>
your regular expresions only catch uri&#39;s that in it Username are:<br>
<br>
-111<br>
-011.*<br>
-00.*<br>
-+.*<br>
<br>
Where do you catch the usernames that begins with alphabetic chars ? no where<br>
<div class="Ih2E3d"><br>
&gt; Can you advice please about what could be that issue?<br>
<br>
</div>Yes, read a good book about regular expressions.<br>
<font color="#888888"><br>
--<br>
Raúl Alexis Betancor Santana<br>
Dimensión Virtual<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>