diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 21:59:15 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 21:59:15 +0000 |
commit | cfe23d813baba53d9a259d4bd0ded24c28eb70c0 (patch) | |
tree | cf39eb30049778e83ba0ef6c5c9ac8fa869a50e2 /apps/app_speech_utils.c | |
parent | 6daaf236fa02216a08f8868429eebc55ee2383a9 (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: http://svn.digium.com/svn/asterisk/trunk@79335 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r-- | apps/app_speech_utils.c | 2 |
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"); |