FS-7903 #resolve [proxy_media gives Codec PROXY Exists but not at the desired implementation. 0hz 0ms 1ch]

This commit is contained in:
Anthony Minessale authored and Brian West committed 2015-08-24 17:44:20 -05:00
1 parent 03656d5cb5
commit b78a600375
3 files changed
+31 -21

No files matched your search

+11
View File
@@ -666,6 +666,17 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_init_with_bitrate(switch_codec
return SWITCH_STATUS_GENERR;
}
if (!strncasecmp(codec_name, "PROXY", 5)) {
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {
if ((!channels || channels == iptr->number_of_channels)) {
implementation = iptr;
break;
}
}
goto found;
}
/* If no specific codec interval is requested opt for 20ms above all else because lots of stuff assumes it */
if (!ms) {
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {