]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6237 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 18:48:59 +0000 (23:48 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 18:48:59 +0000 (23:48 +0500)
src/switch_channel.c
src/switch_core_media.c

index 79d1573668f7be97c54d568372e9e6f056962d97..6e22b82d75a4ee7770eab72d1ab37d5b0c4fc4dd 100644 (file)
@@ -3668,6 +3668,14 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_answered(switch_chan
                                          channel->name);
 
 
+       if ((var = switch_channel_get_variable(channel, "absolute_codec_string"))) {
+               /* inherit_codec == true will implicitly clear the absolute_codec_string 
+                  variable if used since it was the reason it was set in the first place and is no longer needed */
+               if (switch_true(switch_channel_get_variable(channel, "inherit_codec"))) {
+                       switch_channel_set_variable(channel, "absolute_codec_string", NULL);
+               }
+       }
+
        switch_channel_execute_on(channel, SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE);
 
        if (!switch_channel_test_flag(channel, CF_EARLY_MEDIA)) {
index a55730ba0f02b8e22a996a6fc185386e1a97316c..aed981d226ae6467c44e8074249fc2a0e3bacfd0 100644 (file)
@@ -1366,11 +1366,6 @@ SWITCH_DECLARE(void) switch_core_media_prepare_codecs(switch_core_session_t *ses
        switch_assert(smh->session != NULL);
 
        if ((abs = switch_channel_get_variable(session->channel, "absolute_codec_string"))) {
-               /* inherit_codec == true will implicitly clear the absolute_codec_string 
-                  variable if used since it was the reason it was set in the first place and is no longer needed */
-               if (switch_true(switch_channel_get_variable(session->channel, "inherit_codec"))) {
-                       switch_channel_set_variable(session->channel, "absolute_codec_string", NULL);
-               }
                codec_string = abs;
                goto ready;
        }