24.10.2024

Timer_interval. Hash_size explaining.

Example: you have 1000 registrations. Timer_interval = 16, and hash_size = 3.
Opensips will create 8 buckets with regs and sends each 125 regs per 2 sec in case regs not registered but enabled.

hash_size = 3, means create 2^3 buckets. 8 buckets.
Timer_interval / Buckets = 2 it means each 2 seconds opensips will check each bucket.

*You can not use more buckets then timer_interval
*if you use timer_interval more 100, but regs have expire < 100, you will get error in log, and those regs would not be registered for some time.

Related Errors:
ERROR:uac_registrant:run_reg_tm_cback: Please decrease timer_interval=[80] – imposed server expires [59] to small for AOR=[sip:xxxxxxxx@127.0.0.1]