]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Renaming mod_spandsp's cadence + tone detection APPs and APIs (start_tone_detect...
authorChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 6 Nov 2014 19:46:56 +0000 (14:46 -0500)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 6 Nov 2014 19:46:56 +0000 (14:46 -0500)
spandsp_start_tone_detect and spandsp_stop_tone_detect to resolve conflict with mod_dptools'
tone_detect/stop_tone_detect APPs.

src/mod/applications/mod_spandsp/mod_spandsp.c

index 5cd3b1ebf8b0e9409dfe23cc10dc93e413022e55..12a8a95948374a52452c4bb4b0fdce1467e015c5 100644 (file)
@@ -788,12 +788,12 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spandsp_init)
        if (mod_spandsp_dsp_load(module_interface, pool) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't load or process spandsp.conf, not adding tone_detect applications\n");
        } else {
-               SWITCH_ADD_APP(app_interface, "start_tone_detect", "Start background tone detection with cadence", "", start_tone_detect_app, "<name>", SAF_NONE);
-               SWITCH_ADD_APP(app_interface, "stop_tone_detect", "Stop background tone detection with cadence", "", stop_tone_detect_app, "", SAF_NONE);
-               SWITCH_ADD_API(api_interface, "start_tone_detect", "Start background tone detection with cadence", start_tone_detect_api, "<uuid> <name>");
-               SWITCH_ADD_API(api_interface, "stop_tone_detect", "Stop background tone detection with cadence", stop_tone_detect_api, "<uuid>");
-               switch_console_set_complete("add start_tone_detect ::console::list_uuid");
-               switch_console_set_complete("add stop_tone_detect ::console::list_uuid");
+               SWITCH_ADD_APP(app_interface, "spandsp_start_tone_detect", "Start background tone detection with cadence", "", start_tone_detect_app, "<name>", SAF_NONE);
+               SWITCH_ADD_APP(app_interface, "spandsp_stop_tone_detect", "Stop background tone detection with cadence", "", stop_tone_detect_app, "", SAF_NONE);
+               SWITCH_ADD_API(api_interface, "spandsp_start_tone_detect", "Start background tone detection with cadence", start_tone_detect_api, "<uuid> <name>");
+               SWITCH_ADD_API(api_interface, "spandsp_stop_tone_detect", "Stop background tone detection with cadence", stop_tone_detect_api, "<uuid>");
+               switch_console_set_complete("add spandsp_start_tone_detect ::console::list_uuid");
+               switch_console_set_complete("add spandsp_stop_tone_detect ::console::list_uuid");
        }
 
        SWITCH_ADD_API(api_interface, "start_tdd_detect", "Start background tdd detection", start_tdd_detect_api, "<uuid>");