提交 84c3e3ad authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5572 --resolve set new variable by doing export bypass_keep_codec=true to…

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
上级 185917ed
...@@ -6701,6 +6701,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se ...@@ -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); 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)) if ((uuid = switch_channel_get_partner_uuid(session->channel))
&& (other_session = switch_core_session_locate(uuid))) { && (other_session = switch_core_session_locate(uuid))) {
other_channel = switch_core_session_get_channel(other_session); other_channel = switch_core_session_get_channel(other_session);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论