[SR-Users] dialog: use keepalive & timeout features together

Andrey Utkin andrey.krieger.utkin at gmail.com
Thu Jul 9 20:03:25 CEST 2015


2015-07-08 15:22 GMT+03:00 Andrey Utkin <andrey.krieger.utkin at gmail.com>:
> 2015-07-07 10:07 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>> if there is no response to keepalive, the call should be terminated in
>> like 10 seconds.
>
> Thank you for quick reply Daniel.
> Can this be different for the case of TLS connections? I guess this can matter.

Terrible sorry, it turned out that I was wrong - keepalives actually
were not sent, because this was missing:

dlg_set_property("ka-src");
dlg_set_property("ka-dst");

Before, I just had set "ka_timer" and "ka_interval" and thought it is
enough, and it is not obvious from module manual that it is not
enough.
Also Kamailio was sometimes sending OPTIONS, bug I guess to test
availability of registeration entries, and I thought they are dialog
keep-alive requests.
Is a documentation update pull request welcome, to add a note that
dlg_set_property() is necessary to enable KA sending?



-- 
Andrey Utkin



More information about the sr-users mailing list