Fix accidental RTCP/RTP linkage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
e65f1c2a95
commit
8b7e1054fe
3
rtp.c
3
rtp.c
|
@ -353,8 +353,7 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
|
||||||
/* Send to whoever sent to us */
|
/* Send to whoever sent to us */
|
||||||
if ((rtp->rtcp->them.sin_addr.s_addr != sin.sin_addr.s_addr) ||
|
if ((rtp->rtcp->them.sin_addr.s_addr != sin.sin_addr.s_addr) ||
|
||||||
(rtp->rtcp->them.sin_port != sin.sin_port)) {
|
(rtp->rtcp->them.sin_port != sin.sin_port)) {
|
||||||
memcpy(&rtp->them, &sin, sizeof(rtp->them));
|
memcpy(&rtp->rtcp->them, &sin, sizeof(rtp->rtcp->them));
|
||||||
rtp->rxseqno = 0;
|
|
||||||
if (option_debug)
|
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));
|
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…
Reference in New Issue