]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When the sequence number rolls over then reset the recorded sequence number for DTMF...
authorJoshua Colp <jcolp@digium.com>
Fri, 6 Oct 2006 18:46:28 +0000 (18:46 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 6 Oct 2006 18:46:28 +0000 (18:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44605 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index dc8b903686019fa62f2044fa87d600408dad282c..66f2307aea9baf65551acf87580d0947fe5ae2a1 100644 (file)
@@ -1177,6 +1177,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;