aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-17 18:36:17 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-17 18:36:17 +0000
commit8b0f4042ed8f49fe0dabd9ebd183eb19ea1a7089 (patch)
tree32ec3968d010a769af7e732aa20977719087757e /rtp.c
parentf096787f198d5f69adfc1a0463d0741aa9673e91 (diff)
Fix rollover with DTMF (bug #2887)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4280 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rtp.c b/rtp.c
index b198311ef..efbc5de12 100755
--- a/rtp.c
+++ b/rtp.c
@@ -79,7 +79,7 @@ struct ast_rtp {
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 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
/* 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) {