Clean ICE remote candidates in the media description when sending re-invite after an ICE restart.

This commit is contained in:
Ghislain MARY 2012-10-05 11:28:27 +02:00
parent 8c02cac390
commit c7b3b58145

View file

@ -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;
}
}
}
}