diff --git a/src/switch_core_media.c b/src/switch_core_media.c index d2d70add99..c4f820a1fa 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -4026,8 +4026,8 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t engine->rtcp_mux = -1; } - if (switch_channel_test_flag(smh->session->channel, CF_REINVITE)) { - if (switch_rtp_ready(engine->rtp_session) && engine->ice_in.cands[engine->ice_in.chosen[0]][0].ready && engine->new_ice) { + if (engine->new_ice) { + if (switch_rtp_ready(engine->rtp_session) && engine->ice_in.cands[engine->ice_in.chosen[0]][0].ready) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_INFO, "RE-Activating %s ICE\n", type2str(type)); switch_rtp_activate_ice(engine->rtp_session,