]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5398
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 15:10:02 +0000 (10:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 15:10:06 +0000 (10:10 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 3904488f046bfdda25898870afe202269fec0a41..8ea0af0d50356a5bf4f4e40022090e08886ba79c 100644 (file)
@@ -4638,7 +4638,7 @@ switch_status_t sofia_glue_get_offered_pt(private_object_t *tech_pvt, const swit
        for (i = 0; i < tech_pvt->num_codecs; i++) {
                const switch_codec_implementation_t *imp = tech_pvt->codecs[i];
 
-               if (!strcasecmp(imp->iananame, mimp->iananame)) {
+               if (!strcasecmp(imp->iananame, mimp->iananame) && imp->actual_samples_per_second == mimp->actual_samples_per_second) {
                        *pt = tech_pvt->ianacodes[i];
 
                        return SWITCH_STATUS_SUCCESS;