FS-9136: update other modules to match api change

This commit is contained in:
Michael Jerris 2016-06-03 18:21:08 -05:00
parent 4a536dd23c
commit 15d250ed7c
3 changed files with 3 additions and 3 deletions

View File

@ -3403,7 +3403,7 @@ static void parse_bri_pri_spans(switch_xml_t cfg, switch_xml_t spans)
//switch_core_strdup(pool, val); //switch_core_strdup(pool, val);
const switch_codec_implementation_t *codec = NULL; const switch_codec_implementation_t *codec = NULL;
int num_codecs; int num_codecs;
num_codecs = switch_loadable_module_get_codecs_sorted(&codec, 1, &val, 1); num_codecs = switch_loadable_module_get_codecs_sorted(&codec, NULL, 1, &val, 1);
if (num_codecs != 1 || !codec) { if (num_codecs != 1 || !codec) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"Failed finding codec %s for unrestricted digital calls\n", val); "Failed finding codec %s for unrestricted digital calls\n", val);

View File

@ -945,7 +945,7 @@ static int get_codecs(struct private_object *tech_pvt)
} }
if (codec_string) { if (codec_string) {
if ((tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs, if ((tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs, NULL,
SWITCH_MAX_CODECS, codec_order_p, codec_order_last)) <= 0) { SWITCH_MAX_CODECS, codec_order_p, codec_order_last)) <= 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "NO codecs?\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "NO codecs?\n");
return 0; return 0;

View File

@ -730,7 +730,7 @@ void FSConnection::SetCodecs()
{ {
char *codec_order[SWITCH_MAX_CODECS]; char *codec_order[SWITCH_MAX_CODECS];
int codec_order_last = switch_separate_string((char *)codec_string.GetPointer(), ',', codec_order, SWITCH_MAX_CODECS); int codec_order_last = switch_separate_string((char *)codec_string.GetPointer(), ',', codec_order, SWITCH_MAX_CODECS);
numCodecs = switch_loadable_module_get_codecs_sorted(codecs, SWITCH_MAX_CODECS, codec_order, codec_order_last); numCodecs = switch_loadable_module_get_codecs_sorted(codecs, NULL, SWITCH_MAX_CODECS, codec_order, codec_order_last);
} }
for (int i = 0; i < numCodecs; i++) { for (int i = 0; i < numCodecs; i++) {