Ok, so a line like:<div><br></div><div>&lt;action application=&quot;limit&quot; data=&quot;hash inbound ${destination_number} 1/5 !NORMAL_CIRCUIT_CONGESTION&quot; /&gt;</div><div><br></div><div>avoid loops because Freeswitch doesn&#39;t accept more than 1 call each 5 seconds (the loops are very fast) but allow to have concurrent calls to the same destination number.</div>
<div><div>Thank you Ken!</div><div><br></div><div><br></div><div>Stephen</div><div><br></div><div><br></div><div><div class="gmail_quote">On Mon, Mar 7, 2011 at 6:14 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
<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<div class="im"><br>
<br>
<br>
On 3/7/11 11:01 AM, &quot;Stephen Wilde&quot; &lt;<a href="http://wstephen80@gmail.com" target="_blank">wstephen80@gmail.com</a>&gt; wrote:<br>
<br>
</div></span></font><blockquote><div class="im"><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="http://krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt; wrote:<br>
</span></font></div><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><div class="im">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></div><div class="im">
On 3/7/11 10:24 AM, &quot;Stephen Wilde&quot; &lt;<a href="http://wstephen80@gmail.com" target="_blank">wstephen80@gmail.com</a> &lt;<a href="http://wstephen80@gmail.com" target="_blank">http://wstephen80@gmail.com</a>&gt; &gt; wrote:<br>

<br>
</div></span></font><blockquote><div class="im"><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></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a> &lt;<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">http://FreeSWITCH-users@lists.freeswitch.org</a>&gt; <br>
<div class="im">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></span></font></font></blockquote><div class="im"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</span></font></div></blockquote><div class="im"><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="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</span></font></font></div></blockquote>
</div>


<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>