Hello,
On 12/10/16 12:46, Grant Bagdasarian wrote: > > 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? > It sounds good. If you have the pipelimit for caller and you do db authentication for it, an alternative is to load the limit and algorithm via load_credentials from auth_db. In this way there is no caching, but the values are loaded with same query as the password. Cheers, Daniel > > > > Regards, > > > > Grant > > > > *From:*sr-users [mailto:sr-users-boun...@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://twitter.com/#%21/miconda> - > http://www.linkedin.com/in/miconda > Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com -- 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
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users