]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure we support RTCP compound messages with zero reports
authorOlle Johansson <oej@edvina.net>
Sat, 20 Feb 2010 22:25:42 +0000 (22:25 +0000)
committerOlle Johansson <oej@edvina.net>
Sat, 20 Feb 2010 22:25:42 +0000 (22:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248106 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index a124bb745dd69f92311a419cc1687024d23cd0c9..4f54b71a56e24d8b6e1fa970e2e4b4e9e2bdeeb6 100644 (file)
@@ -944,6 +944,10 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
                }
     
                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: