backport "Fix accidental RTCP/RTP linkage"

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Russell Bryant 20 years ago
parent b2fb3d501c
commit 5a80b57ccf

@ -367,7 +367,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
/* 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));
memcpy(&rtp->rtcp->them, &sin, sizeof(rtp->rtcp->them));
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));
}
}

Loading…
Cancel
Save