[SR-Users] Pipelimit needs restart to reload values

Henning Westerholt hw at gilawa.com
Wed Oct 19 20:33:52 CEST 2022


Hello,

this sounds either like a limitation that should be documentation in the module readme, or a small bug that could be fixed.
You could open an issue on our tracker about it, or even better, submit a pull request.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Duarte Rocha
Sent: Friday, September 23, 2022 2:31 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Pipelimit needs restart to reload values

Greetings,

I've been using the pipelimit module and the pl_check function to control users rates in my proxy.

if (!pl_check("$var(UserID)", "TAILDROP", "$var(UserRate)")) {
     pl_drop();
     exit;
}

In this case  $var(UserID) is the pipe and  $var(UserRate) is the maximum rate.
The value of the rate is retrieved on every call via query to a DB.

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.

Why does this happen? Can I change this behaviour?

Cheers,

Duarte

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221019/27586ec5/attachment.htm>


More information about the sr-users mailing list