Set the state of an ICE check list to Failed if the peer has set the port of the media stream to 0.

This commit is contained in:
Ghislain MARY 2012-08-22 15:58:13 +02:00
parent 1f9a43a8e8
commit 4e7aa3c6c6

View 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'))