From: Joshua Colp Date: Wed, 8 Oct 2008 14:51:42 +0000 (+0000) Subject: If we receive DTMF make sure that the state of the speech structure goes back to... X-Git-Tag: 1.4.23-rc1~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38402d868ce023ff6a14067a782b7185546bcdfb;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@147517 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 6e498f29fb..702e9348ff 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 */