Merged revisions 54481 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 14 Feb 2007 21:10:53 +0000 (21:10 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 14 Feb 2007 21:10:53 +0000 (21:10 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54481 | file | 2007-02-14 16:07:23 -0500 (Wed, 14 Feb 2007) | 2 lines

Forward begin DTMF frames as well as end. (issue #9068 reported by mhardeman)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54489 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 129b8ce..29acff8 100644 (file)
@@ -782,9 +782,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
                                        ast_log(LOG_WARNING, "Unable to send URL\n");
                        
 
-                       if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF)))  {
+                       if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF_BEGIN) || (f->frametype == AST_FRAME_DTMF_END)))  {
                                if (ast_write(outgoing->chan, f))
-                                       ast_log(LOG_WARNING, "Unable to forward voice\n");
+                                       ast_log(LOG_WARNING, "Unable to forward voice or dtmf\n");
                        }
                        if (single && (f->frametype == AST_FRAME_CONTROL) && 
                                ((f->subclass == AST_CONTROL_HOLD) ||