From c7b3b58145d794b3da4b2ae4cd4a4eef8fd269c3 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 5 Oct 2012 11:28:27 +0200 Subject: [PATCH] Clean ICE remote candidates in the media description when sending re-invite after an ICE restart. --- coreapi/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coreapi/misc.c b/coreapi/misc.c index ebb19b083..035017b51 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -795,6 +795,11 @@ void linphone_core_update_local_media_description_from_ice(SalMediaDescription * } else { ms_error("ice: Selected valid remote candidates should be present if the check list is in the Completed state"); } + } else { + for (j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_REMOTE_CANDIDATES; j++) { + stream->ice_remote_candidates[j].addr[0] = '\0'; + stream->ice_remote_candidates[j].port = 0; + } } } }