]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Forward begin DTMF frames as well as end. (issue #9068 reported by mhardeman)
authorJoshua Colp <jcolp@digium.com>
Wed, 14 Feb 2007 21:07:23 +0000 (21:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 14 Feb 2007 21:07:23 +0000 (21:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@54481 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index e1ad65d1324022551389035a5f12e9001e93a89b..efbf4e3416b459e3b1ff28b4a3fc393ae8b96112 100644 (file)
@@ -729,9 +729,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l
                                        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) ||