From b0c6bd7101499f29235a7b1b465e95fac112cb6c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 12 Mar 2012 13:49:33 -0500 Subject: [PATCH] FS-3739 please try this patch, its not so much of a bug as an unintended consequence of combining features but this may be the best of both worlds --- src/mod/endpoints/mod_sofia/sofia_glue.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index ad0f25300b..702dbbeaae 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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; }