I would like to terminate the dialog when one party disconnects without sending a BYE
(no more connctivity, client shutdown)

I am using TCP connection.

Should I terminate the dialog from event_route[usrloc:contact-expired] ?

I have tried also to use SIP OPTION parameter from dialog module
modparam("dialog", "ka_timer",  10 )
modparam("dialog", "ka_interval",  30 )
but nothing is sent)

thibault