[SR-Users] detect failed socket

Camille Oudot camille.oudot at orange.com
Mon Aug 29 18:12:43 CEST 2016


> Is it possible to check the socket towards the receiver user at the
> moment when the message arrives at Kamailio? I think if I would check
> that if the socket is not fine, I could send the message to the msilo
> directly and the client would not have wait for timeout to resend.

Hi,

one solution would be to use the handle_lost_tcp parameter from usrloc
so that the record will be removed from it if the connection is closed:

http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.handle_lost_tcp

-- 
Camille



More information about the sr-users mailing list