Hi Magnus, Currently there is no such media socket monitoring mechanism, however application can always implement stream activity monitor, e.g: periodic check on stream statistics (pjsua_call_get_stream_stat()), or just use the SIP session timer feature (the standard way). BR, nanang On Tue, Sep 18, 2012 at 3:45 AM, Magnus Kempe <mkempe at cardinalpeak.com> wrote: > I have two user agents negotiating an ICE connection, using pjnath.h. Each > gets a valid ICE transport, and they successfully communicate. > > When one UA ends the session (or the process dies), how does the other UA > find out? is there something similar to socket communication, where a packet > size of zero bytes indicates that the peer has performed an orderly > shutdown? I tried that in on_rx_data() but it doesn't seem to be called like > that. > > In other words, if the answerer UA calls > pj_ice_strans_destroy (my_ice_st); > > is there some way for the other UA to find out that the ICE session is over? > > thanks, > Magnus > > _______________________________________________ > 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 >