mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Delete ICE session, when its state is Failed after receiving an answer from the peer (probably caused by ice-mismatch attributes).
This commit is contained in:
parent
8e50e1c2bd
commit
bb80550705
1 changed files with 2 additions and 1 deletions
|
|
@ -709,7 +709,8 @@ int sdp_to_media_description(sdp_message_t *msg, SalMediaDescription *desc, IceS
|
|||
ice_session_set_remote_credentials(*ice_session, ice_ufrag, ice_pwd);
|
||||
ice_dump_session(*ice_session);
|
||||
}
|
||||
if ((ice_session_just_created == FALSE) && ((ice_ufrag == NULL) || (ice_pwd == NULL))) {
|
||||
if (((ice_session_just_created == FALSE) && ((ice_ufrag == NULL) || (ice_pwd == NULL)))
|
||||
|| (ice_session_state(*ice_session) == IS_Failed)) {
|
||||
/* We started with ICE activated but the peer apparently do not support ICE, so stop using it. */
|
||||
ice_session_destroy(*ice_session);
|
||||
*ice_session = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue