[OpenSIPS-Devel] [opensips] uac_registrant and external "expires" parameter (in 200OK) (#217)

Ovidiu Sas notifications at github.com
Tue May 20 18:07:59 CEST 2014


Both hash size and timer interval are configurable so the admin can tune them to fit their needs.
One reason for having a hash is to avoid running over all records when the timer fires.
When the timer fires, the modules checks only one entry into the hash table, that's why the timer_interval is divided by reg_hsize during initialization.

If you want to use expire=120 with a hash_size =4, then set:
modparam("uac_registrant", "timer_interval", 32)
modparam("uac_registrant", "hash_size", 4)

This will result in 16 branches in the hash table. Each record will be checked every 32s and every 2s the timer will fire checking one branch in the hash table.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/217#issuecomment-43646676
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140520/9e94b198/attachment.htm>


More information about the Devel mailing list