aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_rtp_asterisk.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-20 22:37:22 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-20 22:37:22 +0000
commitdbed743d320722d4584b1354215fc248e8174407 (patch)
treea736526e44e226fff94a330506ffcea45f4e08d2 /res/res_rtp_asterisk.c
parent52d21f26d0398ad1906b251f75347e1cbfbc9a04 (diff)
Improve support for RTCP reports without report blocks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@248108 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r--res/res_rtp_asterisk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index e06daa575..d8a279199 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -1585,6 +1585,10 @@ static struct ast_frame *ast_rtcp_read(struct ast_rtp_instance *instance)
}
i += 2; /* Advance past header and ssrc */
+ if (rc == 0 && pt == RTCP_PT_RR) { /* We're receiving a receiver report with no reports, which is ok */
+ position += (length + 1);
+ continue;
+ }
switch (pt) {
case RTCP_PT_SR: