Merged revisions 43798 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43798 | file | 2006-09-27 15:10:59 -0400 (Wed, 27 Sep 2006) | 2 lines

Compensate for out of order packets better if RFC2833 compensation is turned on.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Joshua Colp 19 years ago
parent a5770f4e72
commit 6df7c274d8

@ -731,6 +731,12 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
f->samples = duration; f->samples = duration;
rtp->resp = 0; rtp->resp = 0;
rtp->lasteventendseqn = seqno; 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; rtp->dtmfcount = dtmftimeout;

Loading…
Cancel
Save