[Asterisk-cvs] asterisk rtp.c,1.97,1.98

markster at lists.digium.com markster at lists.digium.com
Fri Nov 19 00:24:26 CST 2004


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

Modified Files:
	rtp.c 
Log Message:
Increment seqno in RTP in RFC2833 (bug #2902)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- rtp.c	17 Nov 2004 19:04:48 -0000	1.97
+++ rtp.c	19 Nov 2004 05:24:45 -0000	1.98
@@ -1073,6 +1073,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