FS-10899: [core] 3pcc-mode=proxy is proxying SDP in the 200OK with late offer invites #resolve

This commit is contained in:
Brian West 2018-01-13 15:56:10 -06:00 committed by Muteesa Fred
parent 352cc3526d
commit 433c2b6b89
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
switch_channel_set_flag(channel, CF_3PCC);
}
if (b_sdp && !switch_channel_var_true(channel, "3pcc_always_gen_sdp")) {
if (b_sdp && is_proxy && !switch_channel_var_true(channel, "3pcc_always_gen_sdp")) {
switch_core_media_set_local_sdp(session, b_sdp, SWITCH_TRUE);
} else {
switch_core_media_choose_port(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO, 0);