提交 d395b654 authored 作者: Luke Dashjr's avatar Luke Dashjr

expose ASR start_input_timers to dialplan via mod_dptools

上级 acd56d2f
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
* Michael Murdock <mike at mmurdock dot org> * Michael Murdock <mike at mmurdock dot org>
* Neal Horman <neal at wanlink dot com> * Neal Horman <neal at wanlink dot com>
* Bret McDanel <trixter AT 0xdecafbad dot com> * Bret McDanel <trixter AT 0xdecafbad dot com>
* Luke Dashjr <luke@openmethods.com> (OpenMethods, LLC)
* *
* mod_dptools.c -- Raw Audio File Streaming Application Module * mod_dptools.c -- Raw Audio File Streaming Application Module
* *
...@@ -95,7 +96,7 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt) ...@@ -95,7 +96,7 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt)
return extension; return extension;
} }
#define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR pause OR resume" #define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR pause OR resume OR start_input_timers"
SWITCH_STANDARD_APP(detect_speech_function) SWITCH_STANDARD_APP(detect_speech_function)
{ {
char *argv[4]; char *argv[4];
...@@ -116,6 +117,8 @@ SWITCH_STANDARD_APP(detect_speech_function) ...@@ -116,6 +117,8 @@ SWITCH_STANDARD_APP(detect_speech_function)
switch_ivr_stop_detect_speech(session); switch_ivr_stop_detect_speech(session);
} else if (!strcasecmp(argv[0], "param")) { } else if (!strcasecmp(argv[0], "param")) {
switch_ivr_set_param_detect_speech(session, argv[1], argv[2]); 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 (argc >= 3) { } else if (argc >= 3) {
switch_ivr_detect_speech(session, argv[0], argv[1], argv[2], argv[3], NULL); switch_ivr_detect_speech(session, argv[0], argv[1], argv[2], argv[3], NULL);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论