]> sjero.net Git - linphone/commitdiff
Set the state of an ICE check list to Failed if the peer has set the port of the...
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 22 Aug 2012 13:58:13 +0000 (15:58 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 22 Aug 2012 13:58:13 +0000 (15:58 +0200)
coreapi/misc.c

index a4db409d99134d5c1886508b19f59597d529a086..e5aa6ec2cf6d5ece0806ece91a0b98969000cc81 100644 (file)
@@ -772,7 +772,7 @@ void linphone_core_update_ice_from_remote_media_description(LinphoneCall *call,
                                                break;
                                }
                        }
-                       if (stream->ice_mismatch == TRUE) {
+                       if ((stream->ice_mismatch == TRUE) || (stream->rtp_port == 0)) {
                                ice_check_list_set_state(cl, ICL_Failed);
                        } else {
                                if ((stream->ice_pwd[0] != '\0') && (stream->ice_ufrag[0] != '\0'))