From: Russell Bryant Date: Thu, 12 Feb 2009 00:01:02 +0000 (+0000) Subject: Clear out the current event after forcing the end of a digit X-Git-Tag: 1.4.24-rc1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d4e4ff3d1d234dc774665d7203115c57e600d80;p=thirdparty%2Fasterisk.git Clear out the current event after forcing the end of a digit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@174986 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/rtp.c b/main/rtp.c index c917e70b47..b394cf2855 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -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; } }