]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If we receive DTMF make sure that the state of the speech structure goes back to...
authorJoshua Colp <jcolp@digium.com>
Wed, 8 Oct 2008 14:51:42 +0000 (14:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 8 Oct 2008 14:51:42 +0000 (14:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@147517 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_speech_utils.c

index 6e498f29fb4a64183bc54d66ac25371a96dfe5b5..702e9348fffa916319fbf48faa55d67a46c30cbe 100644 (file)
@@ -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 */