<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Alexander!<br>
      <br>
      You can pull the limits per user either by using the
      load_credentials mechanism[1], which automatically pulls user
      information after authentication, or by doing a "manual" DB query
      using the avp_db_query() function[2]. After you have the limit
      value in an AVP, you can pass that pseudo-variable to the
      rl_check() function[3].<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/auth_db#idp5578480">http://www.opensips.org/html/docs/modules/2.4.x/auth_db#idp5578480</a><br>
      [2]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/avpops.html#idp5619104">http://www.opensips.org/html/docs/modules/2.4.x/avpops.html#idp5619104</a><br>
      [3]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/ratelimit#idp5577136">http://www.opensips.org/html/docs/modules/2.4.x/ratelimit#idp5577136</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 11/07/2017 03:35 AM, Alexander
      Perkins wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALLkTp11o78bFUTCa5VtCugHcWHs91rPDQSdn+Z2sY0fCxqT6A@mail.gmail.com">
      <div dir="ltr">Hi All.  I have been researching OpenSIPs for quite
        some time now and have implemented a deployment successfully
        with it.  However, I was never able to successfully pull the
        RateLimit configuration from a database.  For example, if I want
        to limit a SIP client to only one call per second and have that
        information pull from MySQL, how would I do that?  I have tried
        searching Google, but cannot find much information.  If I cannot
        pull it in from MySQL, can I reload the RateLimit config without
        restarting OpenSIPs?
        <div><br>
        </div>
        <div>Any help is appreciated,</div>
        <div>Alex</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>