[asterisk-commits] oej: branch 1.4 r46431 - in /branches/1.4: ./ main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 30 09:09:05 MST 2006


Author: oej
Date: Mon Oct 30 10:09:05 2006
New Revision: 46431

URL: http://svn.digium.com/view/asterisk?rev=46431&view=rev
Log:
Bind RTCP to the same IP as RTP

Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/rtp.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?rev=46431&r1=46430&r2=46431&view=diff
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Mon Oct 30 10:09:05 2006
@@ -1758,8 +1758,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_port = htons(x + 1);
+			rtp->rtcp->us.sin_addr = addr;
+		}
 		/* 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 asterisk-commits mailing list