[Asterisk-cvs] asterisk rtp.c,1.141,1.142

markster markster
Fri Aug 12 14:56:32 CDT 2005


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

Modified Files:
	rtp.c 
Log Message:
Fix accidental RTCP/RTP linkage


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- rtp.c	9 Aug 2005 01:59:59 -0000	1.141
+++ rtp.c	12 Aug 2005 18:59:43 -0000	1.142
@@ -353,8 +353,7 @@
 		/* Send to whoever sent to us */
 		if ((rtp->rtcp->them.sin_addr.s_addr != sin.sin_addr.s_addr) ||
 		    (rtp->rtcp->them.sin_port != sin.sin_port)) {
-			memcpy(&rtp->them, &sin, sizeof(rtp->them));
-			rtp->rxseqno = 0;
+			memcpy(&rtp->rtcp->them, &sin, sizeof(rtp->rtcp->them));
 			if (option_debug)
 				ast_log(LOG_DEBUG, "RTP NAT: Using address %s:%d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port));
 		}




More information about the svn-commits mailing list