<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    do you need with different limits for each user and method?
    Considering to add a default limit and algorithm for dynamic pipes
    that could be added at runtime, without prior definition.<br>
    <br>
    Right now you can probably get it with htable.<br>
    - set a maximum lifetime for items to the period you want to count<br>
    - for each request you add an item with some random key and value
    being the user<br>
    - use $sthcv(...) to count the number of items that have the value
    of the user<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 29/04/14 13:41, Sebastian Damm
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABkWSFwWSGHRZ2HK--yMDj+pm3mL2pN+Yj1iz2DLSb=eNzGFAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
            I'm looking for a solution to limit the number of call
            initiations or OPTIONS packets or REGISTER packets per user.
            Neither pike, nor pipelimit or ratelimit give me the
            possibility to do this. Limiting it based on the source IP
            is not an option in our case.<br>
            <br>
          </div>
          Is there a module I can use? Or is this generally a bad idea?<br>
          <br>
        </div>
        Best Regards,<br>
        Sebastian<br>
        <div>
          <div>
            <div>
              <div> </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>