[asterisk-commits] file: branch 1.4 r44605 - /branches/1.4/main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Oct 6 11:46:28 MST 2006


Author: file
Date: Fri Oct  6 13:46:28 2006
New Revision: 44605

URL: http://svn.digium.com/view/asterisk?rev=44605&view=rev
Log:
When the sequence number rolls over then reset the recorded sequence number for DTMF (issue #8106 reported by bungalow)

Modified:
    branches/1.4/main/rtp.c

Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?rev=44605&r1=44604&r2=44605&view=diff
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Fri Oct  6 13:46:28 2006
@@ -1177,6 +1177,10 @@
 		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;



More information about the asterisk-commits mailing list