]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use all inbound codecs on renegotiation
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Oct 2012 01:50:53 +0000 (21:50 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Oct 2012 01:50:59 +0000 (21:50 -0400)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 15745a2ce662c0ac13ba791de5adf112fd12fbff..22e51b78654a1f238701f5282a80f3a608fe379a 100644 (file)
@@ -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) ||