[Freeswitch-trunk] [GIT]FreeSWITCH branch master updated. v1.0.6-1123-g0f39c8f
git at svn.freeswitch.org
git at svn.freeswitch.org
Mon Jan 31 23:16:20 MSK 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FreeSWITCH".
The branch, master has been updated
via 0f39c8f9c3d8e8bce05c551e0168e476ce29437a (commit)
from 6d7e019b5c0244f53c16361d2667049b430adb55 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0f39c8f9c3d8e8bce05c551e0168e476ce29437a
Author: Luke Dashjr <luke at openmethods.com>
Date: Sun Aug 22 18:12:18 2010 -0500
expose ASR enable/disable grammar (and disable all grammars) to dialplan via mod_dptools
diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c
index 5a1b8c5..e942bc6 100755
--- a/src/mod/applications/mod_dptools/mod_dptools.c
+++ b/src/mod/applications/mod_dptools/mod_dptools.c
@@ -28,6 +28,7 @@
* Michael Murdock <mike at mmurdock dot org>
* Neal Horman <neal at wanlink dot com>
* Bret McDanel <trixter AT 0xdecafbad dot com>
+ * Luke Dashjr <luke at openmethods.com> (OpenMethods, LLC)
*
* mod_dptools.c -- Raw Audio File Streaming Application Module
*
@@ -95,7 +96,7 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt)
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 grammaron/grammaroff <gram_name> OR grammarsalloff"
SWITCH_STANDARD_APP(detect_speech_function)
{
char *argv[4];
@@ -108,6 +109,12 @@ SWITCH_STANDARD_APP(detect_speech_function)
switch_ivr_detect_speech_load_grammar(session, argv[1], argv[2]);
} else if (!strcasecmp(argv[0], "nogrammar")) {
switch_ivr_detect_speech_unload_grammar(session, argv[1]);
+ } else if (!strcasecmp(argv[0], "grammaron")) {
+ switch_ivr_detect_speech_enable_grammar(session, argv[1]);
+ } else if (!strcasecmp(argv[0], "grammaroff")) {
+ switch_ivr_detect_speech_disable_grammar(session, argv[1]);
+ } else if (!strcasecmp(argv[0], "grammarsalloff")) {
+ switch_ivr_detect_speech_disable_all_grammars(session);
} else if (!strcasecmp(argv[0], "pause")) {
switch_ivr_pause_detect_speech(session);
} else if (!strcasecmp(argv[0], "resume")) {
-----------------------------------------------------------------------
Summary of changes:
src/mod/applications/mod_dptools/mod_dptools.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
hooks/post-receive
--
FreeSWITCH
More information about the Freeswitch-trunk
mailing list