<div dir="ltr">Hello Bogdan,<br><br>Kindly note that I tried the following method to configure local calls:<br><br>if($rU =~ "^111" || $rU =~ "^011.*" || $rU =~ "^00.*" || $rU =~ "^[+].*" )<br>
{<br>if(!cr_route("default", "0", "$rU", "$rU", "call_id")){<br> sl_send_reply("403", "Not allowed");<br> } else {<br> # In cas of failure, re-route the request<br>
t_on_failure("1");<br> # Relay the request to the gateway<br> t_relay();<br> }<br><br><br>}<br><br>else<br>{<br><br>xlog("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");<br> route(1);<br>
}<br>}<br><br>When making a Long distance call that begis with 00 everything looks fine and the call is routed correctly to its destination...The issue is when trying a call that do not begin by 00 like calling "micho"...The system access the else { xlog("XXXXXXXX.....and it enter inside a loop and nothing will happen on the other side...<br>
<br>Can you advice please about what could be that issue?<br><br>Regards<br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 10:35 PM, michel freiha <span dir="ltr"><<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>></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;"><div dir="ltr">Dear Bogdan,<br><br>Please let me know before using the dynamic routing module if there is a possibility to make local calls with carrierroute<br>
<br>regards<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 5:25 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>></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;">Hi Michel,<br>
<br>
Try using the dynamic Routing module - it is simple to configure and I can help you there. You can achieve the same functionality.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
michel freiha wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Dear All,<br>
<br>
I'm using carrierroute module fro load balancing as follow:<br>
<br>
<br>
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){<br>
sl_send_reply("403", "Not Allowed");<br>
} else {<br>
<br>
<br>
# In cas of failure, re-route the request<br>
t_on_failure("1");<br>
# Relay the request to the gateway<br>
t_relay();<br>
}<br>
<br>
Everything looks fine when making a long distance call that begin with 00...The issue is when making a local call to opensips, the server return Not Allowed...<br>
Can you tell me please what is missing here?<br>
<br>
Regards<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>