hi, when using PJSUA as ICE enabled SIP client call to my service side SIP endpoint, I found pjsua_app.c still output media ACTIVE if on_ice_complete callback report nego failed. small patch below Index: pjsip/src/pjsua-lib/pjsua_media.c =================================================================== --- pjsip/src/pjsua-lib/pjsua_media.c (revision 4844) +++ pjsip/src/pjsua-lib/pjsua_media.c (working copy) @@ -655,6 +655,8 @@ } else { call_med->state = PJSUA_CALL_MEDIA_ERROR; call_med->dir = PJMEDIA_DIR_NONE; + call->media[call_med->idx].state = PJSUA_CALL_MEDIA_ERROR; + call->media[call_med->idx].dir = PJMEDIA_DIR_NONE; if (call && pjsua_var.ua_cfg.cb.on_call_media_state) { /* Defer the callback to a timer */ pjsua_schedule_timer2(&ice_failed_nego_cb, regards, Gang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140516/b4e91369/attachment.html>