]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5572 --resolve set new variable by doing export bypass_keep_codec=true to force...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 25 Jul 2013 19:12:26 +0000 (14:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 25 Jul 2013 19:12:26 +0000 (14:12 -0500)
src/switch_core_media.c

index 22e082d90da5ad3a8781f0a9883c3e98e29543e1..1230fbb25410bbe1a1d878e34617e4833c3eb194 100644 (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);