fix regression from regression

This commit is contained in:
Anthony Minessale 2014-06-03 05:26:24 +05:00
parent 7057d7d35e
commit 7b74ee3955

View File

@ -5787,11 +5787,13 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
}
}
if (tech_pvt && (status > 100 || switch_channel_test_flag(channel, CF_ANSWERED)) && status < 300 && !r_sdp && tech_pvt->last_sdp_str) {
r_sdp = tech_pvt->last_sdp_str;
}
if (tech_pvt) {
if ((status > 100 || switch_channel_test_flag(channel, CF_ANSWERED)) && status < 300 && !r_sdp && tech_pvt->last_sdp_str) {
r_sdp = tech_pvt->last_sdp_str;
}
tech_pvt->last_sdp_str = NULL;
tech_pvt->last_sdp_str = NULL;
}
if ((channel && (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA))) ||
(sofia_test_flag(profile, TFLAG_INB_NOMEDIA) || sofia_test_flag(profile, TFLAG_PROXY_MEDIA))) {