aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-06 18:47:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-06 18:47:49 +0000
commite99a34439960443bfe82f443eebdf9fc82a7e666 (patch)
tree14043a34c10c82bfc1852906cb5713480cf77dda /main/rtp.c
parent255a824f5535d82983dbe92f7b9fbd2cad7af9b1 (diff)
Merged revisions 44605 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r44605 | file | 2006-10-06 14:46:28 -0400 (Fri, 06 Oct 2006) | 2 lines When the sequence number rolls over then reset the recorded sequence number for DTMF (issue #8106 reported by bungalow) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44606 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index e45f5bc27..e13f4c302 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1234,6 +1234,10 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
ast_verbose("Got RTP packet from %s:%d (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u)\n",
ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), payloadtype, seqno, timestamp,res - hdrlen);
+ /* When the seqno starts over we need to reset the seqno for DTMF */
+ if (seqno == 0)
+ rtp->lasteventseqn = 0;
+
rtpPT = ast_rtp_lookup_pt(rtp, payloadtype);
if (!rtpPT.isAstFormat) {
struct ast_frame *f = NULL;