From: Anthony Minessale Date: Thu, 9 May 2013 15:10:02 +0000 (-0500) Subject: FS-5398 X-Git-Tag: v1.2.10~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646b34a2a2b673e179e609b9be1038df8683a8c5;p=thirdparty%2Ffreeswitch.git FS-5398 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 3904488f04..8ea0af0d50 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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;