]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Clear out the current event after forcing the end of a digit
authorRussell Bryant <russell@russellbryant.com>
Thu, 12 Feb 2009 00:01:02 +0000 (00:01 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 12 Feb 2009 00:01:02 +0000 (00:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@174986 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index c917e70b475cb21798c6b128b96df3c231025d63..b394cf2855b185063dc94fa54308e99d3b516c3e 100644 (file)
@@ -1307,7 +1307,10 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
                }
 
                if (rtp->resp && !rtp->dtmfcount) {
-                       return send_dtmf(rtp, AST_FRAME_DTMF_END);
+                       struct ast_frame *f;
+                       f = send_dtmf(rtp, AST_FRAME_DTMF_END);
+                       rtp->resp = 0;
+                       return f;
                }
        }