<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Ken or anyone else, do you know how to
      set limit for 5 seconds only?<br>
      <br>
      Sorry for the double-post.<br>
      <br>
      On 13-04-10 10:28 PM, Ken Rice wrote:<br>
    </div>
    <blockquote cite="mid:CD8B8A0A.6ED38%25krice@freeswitch.org"
      type="cite">
      <title>Re: [Freeswitch-users] Detecting call loops while not
        relying on the hop counter</title>
      <font face="Monaco, Courier New"><span style="font-size:11pt">A
          better way to do this is limit this during a period of time,
          say 5 per second, when calls loop they tend to loop up very
          quickly<br>
          <br>
          <br>
          On 4/10/13 9:23 PM, "Victor Chukalovskiy" &lt;<a
            moz-do-not-send="true" href="victor.chukalovskiy@gmail.com">victor.chukalovskiy@gmail.com</a>&gt;
          wrote:<br>
          <br>
        </span></font>
      <blockquote><font face="Monaco, Courier New"><span
            style="font-size:11pt"> &nbsp;&nbsp;Hello,<br>
            &nbsp;<br>
            &nbsp;I have a scenario where FS routes hundreds of calls and
            loop detection is needed. Adding to that, I can't rely on
            hop counter being decremented by other network elements. I
            can use limit in the following fashion:<br>
            &nbsp;<br>
            &nbsp;&lt;action application="limit" data="hash loop_test
            ${caller_id_number}${destination_number} 10
            !NORMAL_CIRCUIT_CONGESTION"/&gt;<br>
            &nbsp;<br>
            &nbsp;So, whenever I have 10 calls with the same calling and
            called party number combination, limit will kick-in and
            break the loop.<br>
            &nbsp;<br>
            &nbsp;<b>Question</b>: Is this efficient from the perspective of
            how "limit" and hash back-end work? Once I have a few
            thousand calls, all having unique "resource" will this
            become resource hungry?<br>
            &nbsp;My main concern is that it will create hundreds of hash
            entries all having the same realm but unique resource.<br>
            &nbsp;<br>
            &nbsp;Anyone knows a better solution?<br>
            &nbsp;<br>
            &nbsp;Thank you,<br>
            &nbsp;Victor<br>
            &nbsp;<br>
            <hr size="3" width="95%" align="CENTER"></span></font><font
          size="2"><font face="Consolas, Courier New, Courier"><span
              style="font-size:10pt">_________________________________________________________________________<br>
              Professional FreeSWITCH Consulting Services:<br>
              <a moz-do-not-send="true" href="consulting@freeswitch.org">consulting@freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" href="http://www.cluecon.com">http://www.cluecon.com</a><br>
              <br>
              FreeSWITCH-users mailing list<br>
              <a moz-do-not-send="true"
                href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
            </span></font></font></blockquote>
      <font size="2"><font face="Consolas, Courier New, Courier"><span
            style="font-size:10pt"><br>
          </span></font></font><font face="Monaco, Courier New"><span
          style="font-size:11pt">-- <br>
          Ken<br>
          <font color="#0000FF"><u><a moz-do-not-send="true"
                href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><br>
              <a moz-do-not-send="true" href="http://www.ClueCon.com">http://www.ClueCon.com</a><br>
              <a moz-do-not-send="true" href="http://www.OSTAG.org">http://www.OSTAG.org</a><br>
            </u></font>irc.freenode.net #freeswitch<br>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>