From 15d250ed7c0d0869796288a639e59bbd3693a1cc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 3 Jun 2016 18:21:08 -0500 Subject: [PATCH] FS-9136: update other modules to match api change --- libs/freetdm/mod_freetdm/mod_freetdm.c | 2 +- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 2 +- src/mod/endpoints/mod_opal/mod_opal.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/freetdm/mod_freetdm/mod_freetdm.c b/libs/freetdm/mod_freetdm/mod_freetdm.c index f564586fb2..300fb9dcb6 100644 --- a/libs/freetdm/mod_freetdm/mod_freetdm.c +++ b/libs/freetdm/mod_freetdm/mod_freetdm.c @@ -3403,7 +3403,7 @@ static void parse_bri_pri_spans(switch_xml_t cfg, switch_xml_t spans) //switch_core_strdup(pool, val); const switch_codec_implementation_t *codec = NULL; 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) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed finding codec %s for unrestricted digital calls\n", val); diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 9e952f2196..72c29a9a5d 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -945,7 +945,7 @@ static int get_codecs(struct private_object *tech_pvt) } 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_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "NO codecs?\n"); return 0; diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp index 9e52eddefb..fd414d7675 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -730,7 +730,7 @@ void FSConnection::SetCodecs() { char *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++) {