]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3739 please try this patch, its not so much of a bug as an unintended consequence...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 12 Mar 2012 18:49:33 +0000 (13:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 12 Mar 2012 18:49:33 +0000 (13:49 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index ad0f25300b3efd7b6ae5ad376bb096cbd7fc7c93..702dbbeaaeeccd7ba0ff3e5e9f928a8a93dffe45 100644 (file)
@@ -787,6 +787,11 @@ void sofia_glue_tech_prepare_codecs(private_object_t *tech_pvt)
        switch_assert(tech_pvt->session != NULL);
 
        if ((abs = switch_channel_get_variable(tech_pvt->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(tech_pvt->channel, "inherit_codec"))) {
+                       switch_channel_set_variable(tech_pvt->channel, "absolute_codec_string", NULL);
+               }
                codec_string = abs;
                goto ready;
        }