aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-12 00:01:02 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-12 00:01:02 +0000
commit2b3cd446c62e1d1f7fcb86e3e5c8ef3c30c3d123 (patch)
tree7fca3084c84c591fedd4a470202b5dcb0404fb35 /main/rtp.c
parent8daf379eefe5160344b913fb1a844e6260d69173 (diff)
Clear out the current event after forcing the end of a digit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@174986 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index c917e70b4..b394cf285 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;
}
}