]> sjero.net Git - linphone/commitdiff
Delete ICE session, when its state is Failed after receiving an answer from the peer...
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 1 Aug 2012 09:34:51 +0000 (11:34 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 1 Aug 2012 09:34:51 +0000 (11:34 +0200)
coreapi/sal_eXosip2_sdp.c

index bf6c196a993d2f9c5172f517adbab2482598718d..1d25d1f51b2de005ae16b97b5a95f917976a2834 100644 (file)
@@ -709,7 +709,8 @@ int sdp_to_media_description(sdp_message_t *msg, SalMediaDescription *desc, IceS
                        ice_session_set_remote_credentials(*ice_session, ice_ufrag, ice_pwd);
                        ice_dump_session(*ice_session);
                }
-               if ((ice_session_just_created == FALSE) && ((ice_ufrag == NULL) || (ice_pwd == NULL))) {
+               if (((ice_session_just_created == FALSE) && ((ice_ufrag == NULL) || (ice_pwd == NULL)))
+                       || (ice_session_state(*ice_session) == IS_Failed)) {
                        /* We started with ICE activated but the peer apparently do not support ICE, so stop using it. */
                        ice_session_destroy(*ice_session);
                        *ice_session = NULL;