aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-13 21:57:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-13 21:57:20 +0000
commit4f174cc84bdeb13ea13e2659d7dfa2e6e13aa416 (patch)
tree7169eb1dd40f02e9014d25e69957468ab0fa5a11 /apps/app_speech_utils.c
parentd8dd30cfc56c73911570ec2c336733763b939833 (diff)
Instead of accepting a single DTMF character accept a full string.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79334 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index cf559c453..e45459166 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -722,7 +722,6 @@ static int speech_background(struct ast_channel *chan, void *data)
/* Free the frame we received */
switch (f->frametype) {
case AST_FRAME_DTMF:
- ast_speech_dtmf(speech, f->subclass);
if (dtmf_terminator != '\0' && f->subclass == dtmf_terminator) {
done = 1;
} else {
@@ -762,6 +761,7 @@ static int speech_background(struct ast_channel *chan, void *data)
/* We sort of make a results entry */
speech->results = ast_calloc(1, sizeof(*speech->results));
if (speech->results != NULL) {
+ ast_speech_dtmf(speech, dtmf);
speech->results->score = 1000;
speech->results->text = strdup(dtmf);
speech->results->grammar = strdup("dtmf");