Joel,

I'm not all too sure about the ka_timer, but it must be more or less how you described it. In my observation below, when caller disappears from the network, Kamailio sends 10 OPTIONS requests followed by 10 BYE if no reply received, which is probably the value of ka_timer.

image.png

On Wed, Aug 29, 2018 at 2:58 PM Joel Serrano <joel@textplus.com> wrote:
I'm confused with these:

modparam("dialog", "ka_timer", 10)
modparam("dialog", "ka_interval", 300)

Would this be more or less correct:

ka_timer = "run the keep-alive timer every Xs"
ka_interval = "send options keep-alive packets every Xs"

But.. how are they related?

I think it's:

- The ka_timer is what sends the OPTIONS but they will only be sent every ka_interval to endpoints? So in the 10s example, the timer is run every 10s, it checks if ka_interval has passed since last OPTIONS was sent to endpoint, and acts accordingly... This means that the combinations of ka_timer=10 with ka_interval=300 would send OPTIONS ever 300-309s right?

Does this make sense?

Thanks, 
Joel.



On Wed, Aug 29, 2018 at 10:20 AM, Alex Balashov <abalashov@evaristesys.com> wrote:
On Wed, Aug 29, 2018 at 01:18:24PM -0400, Sergiu Pojoga wrote:

> Hi Joel,
>
> I personally use the values from examples:
>
> modparam("dialog", "ka_timer", 10)
> modparam("dialog", "ka_interval", 300)
> modparam("dialog", "send_bye", 1)

That's more or less how I roll, too.

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users