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
2015-08-24 17:43:59 -05:00
committed by Brian West
parent 03656d5cb5
commit b78a600375
3 changed files with 31 additions and 21 deletions

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) {