FS-5572 --resolve set new variable by doing export bypass_keep_codec=true to force re-invite with the same codec it was using previously

This commit is contained in:
Anthony Minessale 2013-07-25 14:12:26 -05:00
parent 185917edfe
commit 84c3e3ade2
1 changed files with 5 additions and 0 deletions

View File

@ -6701,6 +6701,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
}
switch_core_media_set_local_sdp(session, NULL, SWITCH_FALSE);
if (switch_true(switch_channel_get_variable(session->channel, "bypass_keep_codec"))) {
switch_channel_set_variable(session->channel, "absolute_codec_string", switch_channel_get_variable(session->channel, "ep_codec_string"));
}
if ((uuid = switch_channel_get_partner_uuid(session->channel))
&& (other_session = switch_core_session_locate(uuid))) {
other_channel = switch_core_session_get_channel(other_session);