PJSUA ICE negotiation failed but forgot update pjsua_call_media state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux