]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7447 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jul 2015 17:28:58 +0000 (12:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jul 2015 17:31:12 +0000 (12:31 -0500)
src/switch_core_media.c

index a1c32d532c68e6a38fe3987f76c2c4eeeb817c8c..5878519cd64a84df55f2466d2f65a08a26833026 100644 (file)
@@ -635,7 +635,7 @@ SWITCH_DECLARE(payload_map_t *) switch_core_media_add_payload_map(switch_core_se
 
 
        for (pmap = engine->payload_map; pmap && pmap->allocated; pmap = pmap->next) {
-               exists = (!strcasecmp(name, pmap->iananame) && (!pmap->rate || rate == pmap->rate) && (!pmap->ptime || pmap->ptime == ptime));
+               exists = (!strcasecmp(name, pmap->iananame) && pmap->pt == pt && (!pmap->rate || rate == pmap->rate) && (!pmap->ptime || pmap->ptime == ptime));
 
                if (exists) {