Commit d08be6e6 authored by Simon Morlat's avatar Simon Morlat
Browse files

Fixes an issue where a stream that is removed can no longer be processed by...

Fixes an issue where a stream that is removed can no longer be processed by mediarelay module of flexisip.
This is because of the a=nortpproxy that is set globally in session, that prevents Flexisip to be aware that the stream was set inactive.
parent b15e3e8b
......@@ -905,7 +905,6 @@ void _update_local_media_description_from_ice(SalMediaDescription *desc, IceSess
bool_t result;
if (session_state == IS_Completed) {
if (use_nortpproxy) desc->set_nortpproxy = TRUE;
result = ice_check_list_selected_valid_local_candidate(ice_session_check_list(session, 0), &rtp_candidate, NULL);
if (result == TRUE) {
strncpy(desc->addr, rtp_candidate->taddr.ip, sizeof(desc->addr));
......@@ -913,9 +912,7 @@ void _update_local_media_description_from_ice(SalMediaDescription *desc, IceSess
ms_warning("If ICE has completed successfully, rtp_candidate should be set!");
}
}
else {
desc->set_nortpproxy = FALSE;
}
strncpy(desc->ice_pwd, ice_session_local_pwd(session), sizeof(desc->ice_pwd));
strncpy(desc->ice_ufrag, ice_session_local_ufrag(session), sizeof(desc->ice_ufrag));
for (i = 0; i < desc->nb_streams; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment