From 416cd5d8a01f4a453470fe5ce0ecd76a086270d7 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 12 Apr 2006 19:57:21 +0000 Subject: Add ability to see if the person calling said anything or not. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19512 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_speech_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/app_speech_utils.c') 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(¤t); 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) { -- cgit v1.2.3