From c9d16d5f4f942bad74e25c4d0045c3af3d6838a8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 15 Oct 2012 21:50:53 -0400 Subject: [PATCH] use all inbound codecs on renegotiation --- 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 15745a2ce6..22e51b7865 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -4749,6 +4749,11 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s if (!reneg && tech_pvt->num_negotiated_codecs) { codec_array = tech_pvt->negotiated_codecs; total_codecs = tech_pvt->num_negotiated_codecs; + } else if (reneg) { + tech_pvt->num_codecs = 0; + sofia_glue_tech_prepare_codecs(tech_pvt); + codec_array = tech_pvt->codecs; + total_codecs = tech_pvt->num_codecs; } if (switch_stristr("T38FaxFillBitRemoval:", r_sdp) || switch_stristr("T38FaxTranscodingMMR:", r_sdp) ||