aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-12 18:59:43 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-12 18:59:43 +0000
commit3651af2fe5610e853e5fde729878b7e23ecb649b (patch)
tree2e161242242f689769d7e0fce1640168232e2fca /rtp.c
parentd6ab3738d88cdb85997a56919cf47653017e7f09 (diff)
Fix accidental RTCP/RTP linkage
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6325 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rtp.c b/rtp.c
index 642a821ad..71a24360f 100755
--- 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)) {
- 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));
}