[Asterisk-cvs] asterisk rtp.c,1.95,1.96
markster at lists.digium.com
markster at lists.digium.com
Wed Nov 17 13:35:49 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv23948
Modified Files:
rtp.c
Log Message:
Fix rollover with DTMF (bug #2887)
Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- rtp.c 11 Nov 2004 19:55:09 -0000 1.95
+++ rtp.c 17 Nov 2004 18:36:17 -0000 1.96
@@ -79,7 +79,7 @@
unsigned int lastrxts;
unsigned int lastividtimestamp;
unsigned int lastovidtimestamp;
- unsigned int lasteventseqn;
+ unsigned int lasteventtimestamp;
int lasttxformat;
int lastrxformat;
int dtmfcount;
@@ -490,16 +490,16 @@
/* 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->lasteventtimestamp <= timestamp) {
f = process_rfc2833(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
- rtp->lasteventseqn = seqno;
+ rtp->lasteventtimestamp = timestamp;
} 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->lasteventtimestamp <= timestamp) {
f = process_cisco_dtmf(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
- rtp->lasteventseqn = seqno;
+ rtp->lasteventtimestamp = timestamp;
} else f = NULL;
if (f) return f; else return &null_frame;
} else if (rtpPT.code == AST_RTP_CN) {
More information about the svn-commits
mailing list