Try lowering timer interval. As I checked w/ a handful of registrations, on start, Kamailio only sent one registration and on next timer the rest of it.

On Wed, Nov 3, 2021, 04:41 Sergiu Pojoga <pojogas@gmail.com> wrote:
Hi Henning,

That's my understanding as well, but in reality seems like it all happens simultaneously, without some kind of delay.

Here's what I have:
  • modparam("uac", "reg_random_delay", 20)
  • 10 uac records
  • expires=300
  • reg_delay=0

kamcmd uac.reg_dump | egrep delay
reg_delay: 13
reg_delay: 7
reg_delay: 3
reg_delay: 2
reg_delay: 8
reg_delay: 1
reg_delay: 2
reg_delay: 14
reg_delay: 17
reg_delay: 18

Following restart of Kamailio:
  • 1st  x10 REGISTERs are all sent out the same millisecond.
  • Contacts saved, received 200 OK with Expires: 300
  • after 280 seconds, another x10 REGISTERs are all sent out the same millisecond
  • and so on
Thanks.

On Tue, Nov 2, 2021 at 2:59 PM Henning Westerholt <hw@gilawa.com> wrote:

Hello,

 

this are two different concepts:

 

  • reg_random_delay is a global parameter to randomize the registration delay for the records
  • reg_delay is a parameter for the individual contacts

 

So it seems to randomize the reg_delay value due to the set reg_random_delay for records with reg_delay = 0.

Could you maybe also observe a second registration after the initial registration, if it stills send out all requests the same time?

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Sergiu Pojoga
Sent: Monday, November 1, 2021 4:20 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] UAC reg_random_delay

 

Hi there,

 

May I know what exactly is supposed to be "delayed" in the UAC registration?

 

modparam("uac", "reg_random_delay", 20)

 

I have records stored in DB with reg_delay=0. When doing uac.reg_dump, I do see the value of reg_delay being random for various records.

 

However, after restarting Kamailio, the registrations are all sent out simultaneously, there doesn't seem to be a "delay", whatever the purpose is supposed to be.

 

Can someone clarify please?

 

Kamailio 5.5.0

 

Thanks. Regards,

--Sergiu

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users