[Asterisk-cvs] asterisk rtp.c,1.92.2.1,1.92.2.2
russell at lists.digium.com
russell at lists.digium.com
Wed Nov 17 23:02:44 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv26514
Modified Files:
Tag: v1-0
rtp.c
Log Message:
detect sequence number rollover (bug #2887)
Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.1
retrieving revision 1.92.2.2
diff -u -d -r1.92.2.1 -r1.92.2.2
--- rtp.c 12 Nov 2004 14:29:15 -0000 1.92.2.1
+++ rtp.c 18 Nov 2004 04:03:10 -0000 1.92.2.2
@@ -469,14 +469,14 @@
/* This is special in-band data that's not one of our codecs */
if (rtpPT.code == AST_RTP_DTMF) {
/* It's special -- rfc2833 process it */
- if (rtp->lasteventseqn <= seqno) {
+ if (rtp->lasteventseqn <= seqno || rtp->resp == 0 || (rtp->lasteventseqn >= 65530 && seqno <= 6)) {
f = process_rfc2833(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
rtp->lasteventseqn = seqno;
} else f = NULL;
if (f) return f; else return &null_frame;
} else if (rtpPT.code == AST_RTP_CISCO_DTMF) {
/* It's really special -- process it the Cisco way */
- if (rtp->lasteventseqn <= seqno) {
+ if (rtp->lasteventseqn <= seqno || rtp->resp == 0 || (rtp->lasteventseqn >= 65530 && seqno <= 6)) {
f = process_cisco_dtmf(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
rtp->lasteventseqn = seqno;
} else f = NULL;
More information about the svn-commits
mailing list