<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I faced the same behavior with pipelimit and solved it for me with cfg_rpc variable that I raised or lowered to my needs. </div><div dir="auto"><br></div><div dir="auto"><a href="https://www.kamailio.org/docs/modules/devel/modules/cfg_rpc.html">https://www.kamailio.org/docs/modules/devel/modules/cfg_rpc.html</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Duarte Rocha <<a href="mailto:duarterocha91@gmail.com">duarterocha91@gmail.com</a>> schrieb am Fr., 23. Sept. 2022, 14:32:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Greetings,<div><br></div><div>I've been using the pipelimit module and the pl_check function to control users rates in my proxy. </div><div><br></div><div>if (!pl_check("$var(UserID)", "TAILDROP", "$var(UserRate)")) {<br></div><div>     pl_drop();</div><div>     exit; </div><div>}<br></div><div><br></div><div>In this case  $var(UserID) is the pipe and  $var(UserRate) is the maximum rate.</div><div>The value of the rate is retrieved on every call via query to a DB. </div><div><br></div><div>If I change the UserRate value to 0 CPS on the DB calls are not rejected unless they go over 1 CPS. However, if I restart Kamailio all calls are correctly rejected. </div><div><br></div><div>Why does this happen? Can I change this behaviour?</div><div><br></div><div>Cheers,</div><div><br></div><div>Duarte </div><div></div><div><br></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>