summaryrefslogtreecommitdiff
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-13 21:59:15 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-13 21:59:15 +0000
commit94b1dda1fab990e887188e627ab2bec4b4e5cf57 (patch)
treecf39eb30049778e83ba0ef6c5c9ac8fa869a50e2 /apps/app_speech_utils.c
parentc41121cdbbd7a205619707370ed429416cdd2cc9 (diff)
Merged revisions 79334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79334 | file | 2007-08-13 18:57:20 -0300 (Mon, 13 Aug 2007) | 2 lines Instead of accepting a single DTMF character accept a full string. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 df2fe468a..040219427 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -662,7 +662,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 {
@@ -702,6 +701,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 = ast_strdup(dtmf);
speech->results->grammar = ast_strdup("dtmf");