]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9136: update other modules to match api change
authorMichael Jerris <mike@jerris.com>
Fri, 3 Jun 2016 23:21:08 +0000 (18:21 -0500)
committerMichael Jerris <mike@jerris.com>
Fri, 3 Jun 2016 23:21:08 +0000 (18:21 -0500)
libs/freetdm/mod_freetdm/mod_freetdm.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c
src/mod/endpoints/mod_opal/mod_opal.cpp

index f564586fb2a15fd21dc61665980e958aece5170c..300fb9dcb68e47db08280b41b34d7a80c3d44889 100644 (file)
@@ -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);
index 9e952f2196b2e489916ccf038c91a716d9c05547..72c29a9a5db136a2ac7bdce915c280c38bcc88e8 100644 (file)
@@ -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;
index 9e52eddefbc6a12fdcec02ef8e6bd64bd733edea..fd414d76758710585ec141e4a8e3d0a3fefe311b 100644 (file)
@@ -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++) {