From 2cb4e49432db20a769415e5f1a3807f0d681633b Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sat, 14 Jul 2018 06:25:35 +0800 Subject: [PATCH] FS-11231 #resolve deprecate start_input_timers and add start-input-timers --- src/mod/applications/mod_dptools/mod_dptools.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index d70a613b4a..3d22b350ef 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -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);