mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 20:25:29 +00:00
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
This commit is contained in:
@@ -1307,7 +1307,10 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rtp->resp && !rtp->dtmfcount) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user