aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-12 19:57:21 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-12 19:57:21 +0000
commita8d5975f06fb71be8f20e46b08482be8630a35c8 (patch)
tree070f7484f3b800f4eabf5d14a9ab0e2fdc184d22 /apps/app_speech_utils.c
parent5fb6f99060f92f51fc78610412e09d37b4fdc594 (diff)
Add ability to see if the person calling said anything or not.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19512 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 0c5c32373..264f56ba1 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -368,6 +368,7 @@ static int speech_background(struct ast_channel *chan, void *data)
} else {
time(&current);
if ((current-start) >= timeout) {
+ pbx_builtin_setvar_helper(chan, "SILENCE", "1");
done = 1;
break;
}
@@ -398,6 +399,7 @@ static int speech_background(struct ast_channel *chan, void *data)
case AST_SPEECH_STATE_DONE:
/* Assume there will be no results by default */
pbx_builtin_setvar_helper(chan, "RESULTS", "0");
+ pbx_builtin_setvar_helper(chan, "SILENCE", "0");
/* Decoding is done and over... see if we have results */
results = ast_speech_results_get(speech);
if (results != NULL) {