Hi Norbert, Sorry I thought you use TCP :D As UDP is connectionless, you need to do the disconnection detection at the application level, such as 1. Send ping request, and check for response in certain time 2. When in call, either detection the successive no or empty rtp packets, or send some "ping" message in call. Then check for the response On Mon, Sep 9, 2013 at 9:16 PM, Kchitiz Saxena <kchitiz.saxena at gmail.com>wrote: > I dont think PJSIP supports this, why don't you do it from application > layer using OS provided event notifications. > > > On Mon, Sep 9, 2013 at 2:34 PM, Norbert Weyrich < > norbert.weyrich at tennet-hh.de> wrote: > >> Hello, >> >> thank you for advice Khoa Pham. >> >> I have made some tests with the callback function but PJSUA has never >> called the callback function. >> >> I think the main problem is the use of the UDP protocol. >> >> I hope someone has an idea to resolve this problem. >> >> Norbert >> >> >> >> >> Am 06.09.2013 13:53, schrieb Khoa Pham: >> >> Have you taken a look at pjsua_med_tp_state_cb ? >> >> >> On Fri, Sep 6, 2013 at 6:14 PM, Norbert Weyrich < >> norbert.weyrich at tennet-hh.de> wrote: >> >>> Hello, >>> >>> I'm writing an application with PJSUA and everything works fine! >>> >>> Next I need the possibility to detect the disconnection of the network >>> connection. >>> I didn't find any callback or other method which the application >>> notifies that the network connection is disconnected. >>> >>> I have tested with pjsua_transport_info but there is no information >>> about the state of the network connection (used protocol and the SIP server >>> IP address). >>> >>> The application works with the memory/buffer-based capture and pjsip >>> fills the buffer with the silence pattern if no RTP packages are received. >>> But I can not see any notification that the connection is lost. >>> >>> I use the UDP as transfer protocol. >>> >>> Has anybody an idea to resolve this problem? >>> >>> Thank you very much >>> >>> Norbert >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip at lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >> >> >> -- >> Khoa Pham >> HCMC University of Science >> www.fantageek.com >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Khoa Pham HCMC University of Science www.fantageek.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130910/879638e2/attachment-0001.html>