]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4797 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Nov 2012 14:53:00 +0000 (08:53 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 6 Nov 2012 14:53:00 +0000 (08:53 -0600)
src/switch_rtp.c

index 8f9fc955a7e51401e2062e85286bfb1eda7d0f98..73c1db88b098d37c78fe336eefb422d1130264bf 100644 (file)
@@ -3145,8 +3145,8 @@ static switch_status_t read_rtcp_packet(switch_rtp_t *rtp_session, switch_size_t
 
                                rtp_session->rtcp_fresh_frame = 1;
 
-                               rtp_session->stats.rtcp.packet_count += sr->pc;
-                               rtp_session->stats.rtcp.octet_count += sr->oc;
+                               rtp_session->stats.rtcp.packet_count += ntohl(sr->pc);
+                               rtp_session->stats.rtcp.octet_count += ntohl(sr->oc);
                                rtp_session->stats.rtcp.peer_ssrc = ntohl(sr->ssrc);
 
                                /* sender report */