[Asterisk-cvs] asterisk rtp.c,1.92.2.2,1.92.2.3

russell at lists.digium.com russell at lists.digium.com
Thu Nov 25 02:04:36 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20440

Modified Files:
      Tag: v1-0
	rtp.c 
Log Message:
fix repeated sequence numbers (bug 2902)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.2
retrieving revision 1.92.2.3
diff -u -d -r1.92.2.2 -r1.92.2.3
--- rtp.c	18 Nov 2004 04:03:10 -0000	1.92.2.2
+++ rtp.c	25 Nov 2004 07:04:04 -0000	1.92.2.3
@@ -1037,6 +1037,8 @@
 			rtpheader[3] |= htonl((800));
 			/* Set the End bit for the last 3 */
 			rtpheader[3] |= htonl((1 << 23));
+		} else if ( x < 3) {
+			rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
 		}
 	}
 	return 0;




More information about the svn-commits mailing list