[svn-commits] oej: branch 1.2 r46430 - /branches/1.2/rtp.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Oct 30 09:00:57 MST 2006


Author: oej
Date: Mon Oct 30 10:00:57 2006
New Revision: 46430

URL: http://svn.digium.com/view/asterisk?rev=46430&view=rev
Log:
Bind rtcp to proper IP address

Modified:
    branches/1.2/rtp.c

Modified: branches/1.2/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?rev=46430&r1=46429&r2=46430&view=diff
==============================================================================
--- branches/1.2/rtp.c (original)
+++ branches/1.2/rtp.c Mon Oct 30 10:00:57 2006
@@ -962,8 +962,10 @@
 		rtp->us.sin_port = htons(x);
 		rtp->us.sin_addr = addr;
 		/* If there's rtcp, initialize it as well. */
-		if (rtp->rtcp)
+		if (rtp->rtcp) {
+			rtp->rtcp->us.sin_addr = addr;
 			rtp->rtcp->us.sin_port = htons(x + 1);
+		}
 		/* Try to bind it/them. */
 		if (!(first = bind(rtp->s, (struct sockaddr *)&rtp->us, sizeof(rtp->us))) &&
 			(!rtp->rtcp || !bind(rtp->rtcp->s, (struct sockaddr *)&rtp->rtcp->us, sizeof(rtp->rtcp->us))))



More information about the svn-commits mailing list