]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
try to improve iLBC compat
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 3 Feb 2011 22:27:22 +0000 (16:27 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 3 Feb 2011 22:27:22 +0000 (16:27 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c
src/switch_core.c

index 8b2f470980f8e11b714fbf7ec8f2f3559b616527..a0b7fca2ff93667411134f4b26279b7a47444d7c 100644 (file)
@@ -4480,7 +4480,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
                                                match = strcasecmp(rm_encoding, imp->iananame) ? 0 : 1;
                                        }
 
-                                       if (match && bit_rate && map_bit_rate && map_bit_rate != bit_rate) {
+                                       if (match && bit_rate && map_bit_rate && map_bit_rate != bit_rate && strcasecmp(map->rm_encoding, "ilbc")) {
                                                /* nevermind */
                                                match = 0;
                                        }
index 87543050b2d40a751a0fc0bcf3ca9b6bd68fdc61..0eb51ccab337faf94b28d9800347e70dc10a8ff3 100644 (file)
@@ -1486,7 +1486,7 @@ static void switch_load_core_config(const char *file)
 {
        switch_xml_t xml = NULL, cfg = NULL;
 
-       //switch_core_hash_insert(runtime.ptimes, "ilbc", &d_30);
+       switch_core_hash_insert(runtime.ptimes, "ilbc", &d_30);
        switch_core_hash_insert(runtime.ptimes, "G723", &d_30);
 
        if ((xml = switch_xml_open_cfg(file, &cfg, NULL))) {