]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11231 #resolve deprecate start_input_timers and add start-input-timers
authorSeven Du <dujinfang@gmail.com>
Fri, 13 Jul 2018 22:25:35 +0000 (06:25 +0800)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:56 +0000 (07:21 +0000)
src/mod/applications/mod_dptools/mod_dptools.c

index d70a613b4a5b60c81739da97a7deb838dd005f94..3d22b350efabcc9a8c7571ffb6743f82476f2728 100644 (file)
@@ -494,7 +494,10 @@ SWITCH_STANDARD_APP(detect_speech_function)
                        switch_ivr_stop_detect_speech(session);
                } else if (!strcasecmp(argv[0], "param")) {
                        switch_ivr_set_param_detect_speech(session, argv[1], argv[2]);
+               } else if (!strcasecmp(argv[0], "start-input-timers")) {
+                       switch_ivr_detect_speech_start_input_timers(session);
                } else if (!strcasecmp(argv[0], "start_input_timers")) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "start_input_timers is deprecated, please use start-input-timers instead!\n");
                        switch_ivr_detect_speech_start_input_timers(session);
                } else if (argc >= 3) {
                        switch_ivr_detect_speech(session, argv[0], argv[1], argv[2], argv[3], NULL);