[SR-Users] How to detect and Hangup a call on network lost at Caller or Callee?

Sergiu Pojoga pojogas at gmail.com
Thu Aug 30 15:32:08 CEST 2018


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: image.png]

On Wed, Aug 29, 2018 at 2:58 PM Joel Serrano <joel at 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 at 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 at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180830/605fcdc2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 49958 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180830/605fcdc2/attachment.png>


More information about the sr-users mailing list