aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk12/files/patch-rtp.c
blob: bbc2649929f97156fc9d65e21c395f1b1f69a00c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

$FreeBSD$

--- rtp.c.orig	Fri Jan 13 13:38:01 2006
+++ rtp.c	Fri Jan 13 13:40:50 2006
@@ -950,8 +950,10 @@ struct ast_rtp *ast_rtp_new_with_bindadd
 		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))))