<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Avoid Loops</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Well you could do that, but lets say you have a client that sends you several calls to a conf number... Also when you loop calls they usually loop fairly fast, by using a rate limit based on the ani and dnis you can still let additional calls pass while reducing the chances of getting loop due to call_id rewrites that are happening at the b2buas that are causing the loop<BR>
<BR>
K<BR>
<BR>
<BR>
On 3/7/11 11:01 AM, &quot;Stephen Wilde&quot; &lt;<a href="wstephen80@gmail.com">wstephen80@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thank you for your suggestion! Good idea! I was searching for more complicated solutions but mod_limit is perfect!<BR>
<BR>
You say to use rate limiting but why not simply limit the calls number instead of rate?<BR>
<BR>
For example a row in dialplan as:<BR>
<BR>
&lt;action application=&quot;limit&quot; data=&quot;hash inbound ${destination_number} 1&quot; /&gt;<BR>
<BR>
can avoid loops?<BR>
<BR>
Stephen<BR>
<BR>
<BR>
On Mon, Mar 7, 2011 at 5:37 PM, Ken Rice &lt;<a href="krice@freeswitch.org">krice@freeswitch.org</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I hate this problem... Mod_limit matching ani+dnis doing rate limiting (say 5 calls with matchig ani+dnis in 2 seconds) can kill the loop and either allow you to re-route or allow then to re-route... This happens a lot more than you thing between 2nd and 3rd tier aggregators<BR>
<BR>
<BR>
<BR>
<BR>
On 3/7/11 10:24 AM, &quot;Stephen Wilde&quot; &lt;<a href="wstephen80@gmail.com">wstephen80@gmail.com</a> &lt;<a href="http://wstephen80@gmail.com">http://wstephen80@gmail.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>In some situation there are calls that loops among some providers and I want avoid that situation.<BR>
For example, I receive the call from my client A, I send this call to my provider B but for some reason the call return to me (for example because B sends the call to A and A resends the call to me).<BR>
In case of loop for me the solution can be simply to drop the call so my client can reroute to a different provider.<BR>
There is anyone that can suggest me a way to drop looped calls?<BR>
<BR>
<BR>
Stephen<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;<a href="http://FreeSWITCH-users@lists.freeswitch.org">http://FreeSWITCH-users@lists.freeswitch.org</a>&gt; <BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>