<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 30/04/14 15:43, Sebastian Damm
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABkWSFzBxrr05ea5KwU_H90bvBTacuU+o=tM2rCBmdgWvYPx3w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
            actually, I only need one limit for all users. I can exempt
            some calls based on IP from the limit. <br>
          </div>
        </div>
      </div>
    </blockquote>
    for all users should just work using one pipe.<br>
    <br>
    If you want per user, I already committed on master branch to have
    dynamic pipes, see:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/devel/modules/pipelimit.html#pipelimit.f.pl_check">http://kamailio.org/docs/modules/devel/modules/pipelimit.html#pipelimit.f.pl_check</a><br>
    <br>
    You should be able to just replace pipelimit from master in a 4.1
    branch clone.<br>
    <br>
    If you try it, let me know if works ok.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CABkWSFzBxrr05ea5KwU_H90bvBTacuU+o=tM2rCBmdgWvYPx3w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Thanks for the input on how to implement it with the
            existing modules.<br>
            <br>
          </div>
          Best Regards,<br>
        </div>
        Sebastian<br>
        <div>
          <div>
            <div>
              <div class="gmail_extra"><br>
                <br>
                <div class="gmail_quote">On Tue, Apr 29, 2014 at 9:31
                  PM, Daniel-Constantin Mierla <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div 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
                      <div>
                        <div class="h5"><br>
                          <br>
                          <div>On 29/04/14 13:41, Sebastian Damm wrote:<br>
                          </div>
                        </div>
                      </div>
                      <blockquote type="cite">
                        <div>
                          <div class="h5">
                            <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></fieldset>
                            <br>
                          </div>
                        </div>
                        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                        <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
                      <span class="HOEnZb"><font color="#888888"> <br>
                          <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
                        </font></span></div>
                    <br>
                    _______________________________________________<br>
                    SIP Express Router (SER) and Kamailio (OpenSER) -
                    sr-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
                <br>
              </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>