<div dir="ltr"><div>Thanks </div>I don't have set the dialog property.<div><br></div><div>I will add these lines on INVITE reception.</div><div><div><br></div><div>dlg_set_property("ka-src");</div><div>dlg_set_property("ka-dst");</div><div>dlg_set_property("timeout-noreset");</div></div><div><br></div><div>But is it the proper way to do it with TCP connection ?</div><div>From the tran</div><div><br></div><div>regards</div><div><br></div><div>thibault</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-01 11:10 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 30/11/15 11:37, Thibault Gueslin wrote:<br>
> I would like to terminate the dialog when one party disconnects<br>
> without sending a BYE<br>
> (no more connctivity, client shutdown)<br>
><br>
> I am using TCP connection.<br>
><br>
> Should I terminate the dialog from event_route[usrloc:contact-expired] ?<br>
><br>
> I have tried also to use SIP OPTION parameter from dialog module<br>
> modparam("dialog", "ka_timer",  10 )<br>
> modparam("dialog", "ka_interval",  30 )<br>
> but nothing is sent)<br>
><br>
><br>
</span>Have you set the keepalive property for the dialog?<br>
<br>
<a href="http://kamailio.org/docs/modules/stable/modules/dialog.html#idp3719336" rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/stable/modules/dialog.html#idp3719336</a><br>
<br>
Cheers,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
<a href="http://miconda.eu" rel="noreferrer" target="_blank">http://miconda.eu</a><br>
<br>
</font></span></blockquote></div><br></div>