aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-08 14:51:42 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-08 14:51:42 +0000
commitf7e0834153a6274d69dec1ed739a79c8e1bb0c8f (patch)
treea39997999419750e455058e9a5b3c4e02b0457d5 /apps/app_speech_utils.c
parent010debfb0939ec9a2d71b97a922da8d85c7662ad (diff)
If we receive DTMF make sure that the state of the speech structure goes back to being not ready. (issue #LUMENVOX-8)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@147517 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 6e498f29f..702e9348f 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -774,6 +774,7 @@ static int speech_background(struct ast_channel *chan, void *data)
speech->results->text = strdup(dtmf);
speech->results->grammar = strdup("dtmf");
}
+ ast_speech_change_state(speech, AST_SPEECH_STATE_NOT_READY);
}
/* See if it was because they hung up */