]> sjero.net Git - linphone/commitdiff
Deactivate ICE if the remote does not support it.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 19 Sep 2012 08:31:14 +0000 (10:31 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 19 Sep 2012 08:31:14 +0000 (10:31 +0200)
coreapi/misc.c

index d05a275ba0ca88d0a5f516fc5f4fbf8b69fe3eac..b4a8479c58864e7623030f809d05916a54ab6582 100644 (file)
@@ -879,6 +879,10 @@ void linphone_core_update_ice_from_remote_media_description(LinphoneCall *call,
                        ice_session_remove_check_list(call->ice_session, ice_session_check_list(call->ice_session, i - 1));
                }
                ice_session_check_mismatch(call->ice_session);
+       } else {
+               /* Response from remote does not contain mandatory ICE attributes, delete the session. */
+               linphone_call_delete_ice_session(call);
+               return;
        }
        if (ice_session_nb_check_lists(call->ice_session) == 0) {
                linphone_call_delete_ice_session(call);