aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-04 18:30:41 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-04 18:30:41 +0000
commitd03f87259b3017050c3c84c046dfe1489087c4b2 (patch)
treeca76897db06597cd336330ad23a12d2606af7143 /main/rtp.c
parent82c2b7e353b3fb4dadd6812e135ecb48bcec133e (diff)
(closes issue #13835)
Reported by: matt_b Tested by: jpeeler This mirrors a check that was present in ast_rtp_read to also be in ast_rtp_raw_write to not schedule sending the receiver report if the remote RTCP endpoint address isn't present in the RTCP structure. Closes AST-142. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@161013 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 31562e0d8..fa9da999a 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2694,8 +2694,10 @@ static int ast_rtp_raw_write(struct ast_rtp *rtp, struct ast_frame *f, int codec
rtp->txcount++;
rtp->txoctetcount +=(res - hdrlen);
- if (rtp->rtcp && rtp->rtcp->schedid < 1)
+ /* Do not schedule RR if RTCP isn't run */
+ if (rtp->rtcp && rtp->rtcp->them.sin_addr.s_addr && rtp->rtcp->schedid < 1) {
rtp->rtcp->schedid = ast_sched_add(rtp->sched, ast_rtcp_calc_interval(rtp), ast_rtcp_write, rtp);
+ }
}
if (rtp_debug_test_addr(&rtp->them))