Fix accidental RTCP/RTP linkage
authorMark Spencer <markster@digium.com>
Fri, 12 Aug 2005 18:59:43 +0000 (18:59 +0000)
committerMark Spencer <markster@digium.com>
Fri, 12 Aug 2005 18:59:43 +0000 (18:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6325 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 642a821..71a2436 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -353,8 +353,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)) {
                /* 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));
-                       rtp->rxseqno = 0;
+                       memcpy(&rtp->rtcp->them, &sin, sizeof(rtp->rtcp->them));
                        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));
                }
                        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));
                }