From 010085e92da6f1564b835a47e2e2a53dbdb7dc79 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 25 Jul 2013 14:12:44 -0500 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index db1a9dd805..12c7d7d169 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1936,6 +1936,11 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi } sofia_glue_tech_set_local_sdp(tech_pvt, 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(channel)) && (other_session = switch_core_session_locate(uuid))) { other_channel = switch_core_session_get_channel(other_session);