From 4e7aa3c6c6692878e681aa63560de433b3646342 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 22 Aug 2012 15:58:13 +0200 Subject: [PATCH] Set the state of an ICE check list to Failed if the peer has set the port of the media stream to 0. --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index a4db409d9..e5aa6ec2c 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -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'))