An alternative option would be to leverage cachedb_local and opensips-cli to implement your list of accounts and rate limits. It has the advantage of using the internal opensips cache service and is probably your most high performance option, with the CLI you can automate data refreshes using basic cron scripts or anything you fancy!
https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc4 https://www.opensips.org/Documentation/Interface-CoreMI-3-0#toc15 https://www.opensips.org/Documentation/Tutorials-KeyValueInterface On Sun, 24 Jan 2021 at 14:56, Ovidiu Sas <o...@voipembedded.com> wrote: > There are no db queries, unless explicitly enabled for distributed > rate limiting, in which case memcache or redis can be used. > > -ovidiu > > On Sun, Jan 24, 2021 at 1:57 AM Schneur Rosenberg > <rosenberg11...@gmail.com> wrote: > > > > Maybe use memcache, it's global and it won't create a bottleneck like a > database query would. > > > > Scott (Schneur) > > > > On Thu, Jan 21, 2021, 05:43 Ovidiu Sas <o...@voipembedded.com> wrote: > >> > >> Take a look at the ratelimit module: > >> https://opensips.org/docs/modules/3.1.x/ratelimit.html > >> > >> -ovidiu > >> > >> On Wed, Jan 20, 2021 at 10:01 PM Alexander Perkins > >> <alexanderhenryperk...@gmail.com> wrote: > >> > > >> > Hi All. Is there a way to limit the calls per second by pulling the > information from a database? I was looking at the call_control module and > that seems to be a global value. but I would need something that I can > control at the call level (I will be handling different accounts that have > different limits). > >> > > >> > Thanks, All. Any help is appreciated. > >> > > >> > Alex > >> > _______________________________________________ > >> > Users mailing list > >> > Users@lists.opensips.org > >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >> > >> > >> > >> -- > >> VoIP Embedded, Inc. > >> http://www.voipembedded.com > >> > >> _______________________________________________ > >> Users mailing list > >> Users@lists.opensips.org > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > > Users mailing list > > Users@lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > -- > VoIP Embedded, Inc. > http://www.voipembedded.com > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- *0333 332 0000 | x-on.co.uk <https://www.x-on.co.uk> | ** <https://www.linkedin.com/company/x-on> <https://www.facebook.com/XonTel> <https://twitter.com/xonuk> ** | Coronavirus <https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>* THE ITSPA AWARDS 2020 <http://www.itspa.org.uk/itspa-awards> AND Best ITSP - Mid Market, Best Software and Best Vertical Solution are trade marks of the Internet Telephony Services Providers' Association, used under licence. X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales. Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead, Herts, HP3 9SD. Company Registration No. 2578478. The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient, please notify X-on immediately on +44(0)333 332 0000 and delete the message from your computer. If you are not a named addressee you must not use, disclose, disseminate, distribute, copy, print or reply to this email. Views or opinions expressed by an individual within this email may not necessarily reflect the views of X-on or its associated companies. Although X-on routinely screens for viruses, addressees should scan this email and any attachments for viruses. X-on makes no representation or warranty as to the absence of viruses in this email or any attachments.
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users