[Asterisk-cvs] asterisk rtp.c,1.114,1.115

russell at lists.digium.com russell at lists.digium.com
Thu Mar 24 16:06:04 CST 2005


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

Modified Files:
	rtp.c 
Log Message:
show correct seq no in debug output (bug #3849)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- rtp.c	17 Mar 2005 23:12:15 -0000	1.114
+++ rtp.c	24 Mar 2005 22:00:23 -0000	1.115
@@ -1271,8 +1271,6 @@
 	put_uint32(rtpheader + 4, htonl(rtp->lastts));
 	put_uint32(rtpheader + 8, htonl(rtp->ssrc)); 
 
-	rtp->seqno++;
-
 	if (rtp->them.sin_port && rtp->them.sin_addr.s_addr) {
 		res = sendto(rtp->s, (void *)rtpheader, f->datalen + hdrlen, 0, (struct sockaddr *)&rtp->them, sizeof(rtp->them));
 		if (res <0) 
@@ -1281,6 +1279,9 @@
 			ast_verbose("Sent RTP packet to %s:%d (type %d, seq %d, ts %d, len %d)\n"
 					, ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->them.sin_addr), ntohs(rtp->them.sin_port), codec, rtp->seqno, rtp->lastts,res - hdrlen);
 	}
+
+	rtp->seqno++;
+
 	return 0;
 }
 




More information about the svn-commits mailing list