mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -774,6 +774,7 @@ static int speech_background(struct ast_channel *chan, void *data)
|
|||||||
speech->results->text = strdup(dtmf);
|
speech->results->text = strdup(dtmf);
|
||||||
speech->results->grammar = 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 */
|
/* See if it was because they hung up */
|
||||||
|
Reference in New Issue
Block a user