[OpenSIPS-Users] Opensips 3.2 Ratecacher

Callum Guy callum.guy at x-on.co.uk
Mon Nov 28 11:17:55 UTC 2022


Looks like a typo in the module!

https://github.com/OpenSIPS/opensips/blob/master/modules/rate_cacher/rate_cacher.c#L127

I suggest trying "cients_hash_size" until patched :)

On Mon, 28 Nov 2022 at 08:19, Wadii ELMAJDI | Evenmedia <wadii at evenmedia.fr>
wrote:

> Hello,
>
> I was able to install ratecacher module and make it work.
> But editing the clients hash size parameter generates an error.
> “ERROR:core:set_mod_param_regex: parameter <clients_hash_size> not found
> in module <rate_cacher>”
> however vendors_hash_size is correctly identified as a rate_cacher
> parameter
> Everything works when removing clients one
> I am running opensips :
>
> version: opensips 3.2.9 (x86_64/linux)
>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
>
> poll method support: poll, epoll, sigio_rt, select.
>
> main.c compiled on  with gcc 10
>
> ### RATECACHER module
>
> loadmodule "rate_cacher.so"
>
> modparam("rate_cacher", "clients_db_url", "mysql://DB_STRING/opensips")
>
> modparam("rate_cacher", "clients_db_table", "rc_clients")
>
> modparam("rate_cacher", "rates_db_url", "mysql://DB_STRING/opensips")
>
> modparam("rate_cacher", "rates_db_table", "rc_ratesheets")
>
> modparam("rate_cacher", "vendors_db_url", "mysql://DB_STRING/opensips")
>
> modparam("rate_cacher", "vendors_db_table", "rc_vendors")
>
> modparam("rate_cacher", "vendors_hash_size", 1024)
>
> modparam("rate_cacher", "clients_hash_size", 1024)
> _______________________________________________
> Users mailing list
> Users at 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>**  |  
Practice Index Reviews <https://practiceindex.co.uk/gp/x-on>*

*Our new 
office address: 22 Riduna Park, Melton IP12 1QT.*







*THE COMMS COUNCIL 
UK AWARDS 2022 AND Best Comms Software are trade marks of the Comms Council 
UK, used under licence - https://commscouncil.uk/awards 
<https://commscouncil.uk/awards>*

X-on
is a trading name of Storacall 
Technology Ltd a limited company registered in
England and Wales.

Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, 
Hampshire, England RG25 2AD. 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.








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221128/8e787f3c/attachment-0001.html>


More information about the Users mailing list