mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Compensate for out of order packets better if RFC2833 compensation is turned on.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -681,6 +681,12 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
|
||||
f->samples = duration;
|
||||
rtp->resp = 0;
|
||||
rtp->lasteventendseqn = seqno;
|
||||
} else if (ast_test_flag(rtp, FLAG_DTMF_COMPENSATE) && event_end & 0x80 && rtp->lasteventendseqn != seqno) {
|
||||
rtp->resp = resp;
|
||||
f = send_dtmf(rtp, AST_FRAME_DTMF_END);
|
||||
f->samples = duration;
|
||||
rtp->resp = 0;
|
||||
rtp->lasteventendseqn = seqno;
|
||||
}
|
||||
|
||||
rtp->dtmfcount = dtmftimeout;
|
||||
|
Reference in New Issue
Block a user