FS-8053 amendment

This commit is contained in:
Anthony Minessale 2015-11-18 12:33:35 -06:00
parent d6fb046308
commit 8a73ecc14a
1 changed files with 1 additions and 5 deletions

View File

@ -3170,6 +3170,7 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t
engine->ice_in.is_chosen[1] = 0; engine->ice_in.is_chosen[1] = 0;
engine->ice_in.cand_idx[0] = 0; engine->ice_in.cand_idx[0] = 0;
engine->ice_in.cand_idx[1] = 0; engine->ice_in.cand_idx[1] = 0;
engine->remote_ssrc = 0;
if (m) { if (m) {
attr = m->m_attributes; attr = m->m_attributes;
@ -3429,11 +3430,6 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t
} }
if (switch_channel_test_flag(smh->session->channel, CF_REINVITE)) { if (switch_channel_test_flag(smh->session->channel, CF_REINVITE)) {
if (engine->remote_ssrc) {
switch_rtp_set_remote_ssrc(engine->rtp_session, engine->remote_ssrc);
}
if (switch_rtp_ready(engine->rtp_session) && engine->ice_in.cands[engine->ice_in.chosen[0]][0].ready && engine->new_ice) { if (switch_rtp_ready(engine->rtp_session) && engine->ice_in.cands[engine->ice_in.chosen[0]][0].ready && engine->new_ice) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_INFO, "RE-Activating %s ICE\n", type2str(type)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_INFO, "RE-Activating %s ICE\n", type2str(type));