Hi Daniel,
I’m trying to get new pipes from the DB and their associated limits.
We’re using the SIP digest username as the pipe to limit the CPS.
I think I do have a workaround for this which is as following:
-
Use a htable to load the ‘pipes’ (usernames) and their config (limit + algorithm) from the db
-
Use the plcheck function to pass in the username, algorithm and limit.
This would allow us to reload the htable from db when new users are created and the plcheck will make sure a new pipe is created when it does not exist by passing the three params.
Do you see any issues with this workaround?
Regards,
Grant
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org]
On Behalf Of Daniel-Constantin Mierla
Sent: woensdag 12 oktober 2016 10:39
To: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Reload PIPILIMIT table from DB
Hello,
On 11/10/16 15:07, Grant Bagdasarian wrote:
Hello,
Is it possible to live reload the pipelimit module so it gets new values from the DB without a restart of Kamailio?
I couldn’t find a command to do this.
no reload command at this moment. What do you want to update from db? Getting new pipes or setting new limits?
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com