[SR-Users] UAC reg_random_delay issue

Ivo Vastert i.vastert at gmail.com
Tue Aug 15 12:54:25 CEST 2017


Hi,

I'm using the UAC module in Kamailio to setup about 500 outbound
registration towards a single host.
The issue I'm currently experiencing is that when we start Kamailio all
this 500 registrations are initiated at once towards the host which can't
handle all the requests at the same time.

Therefor I tried to spread the registrations using the reg_random_delay
function:
modparam("uac", "reg_random_delay", 60)

I would expect that this would spread the registrations over about a minute
but in reality the registrations are spread as follow:

Starttime / Registrations
21:59:14 151
21:59:15 166
21:59:16 127
21:59:18 60
21:59:22 35

So Kamailio is started at 21:59:14 and initiates 151 registrations,
1 second after start another 166
2 seconds after start another 127
4 seconds after start another 60
8 seconds after start the last 35

In reality it looks like some increment is applied instead of calculating a
random starting offset for each outbound registration?
Is there any solutions to this issue available?

Best regards,

Ivo Vastert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170815/32dc9790/attachment.html>


More information about the sr-users mailing list