[asterisk-commits] file: branch 1.6.0 r170241 - in /branches/1.6.0: ./ main/rtp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 22 14:05:24 CST 2009
Author: file
Date: Thu Jan 22 14:05:24 2009
New Revision: 170241
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170241
Log:
Merged revisions 170240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r170240 | file | 2009-01-22 16:04:39 -0400 (Thu, 22 Jan 2009) | 14 lines
Merged revisions 170239 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r170239 | file | 2009-01-22 16:02:35 -0400 (Thu, 22 Jan 2009) | 7 lines
Don't crash if RTCP is not enabled on an RTP structure but statistics are output.
(closes issue #14234)
Reported by: jcovert
Patches:
rtp.c.patch-1.6.0.3 uploaded by jcovert (license 551)
rtp.c.patch-svn-165599 uploaded by jcovert (license 551)
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/main/rtp.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/main/rtp.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/rtp.c?view=diff&rev=170241&r1=170240&r2=170241
==============================================================================
--- branches/1.6.0/main/rtp.c (original)
+++ branches/1.6.0/main/rtp.c Thu Jan 22 14:05:24 2009
@@ -2469,17 +2469,17 @@
ast_verbose("* Our Receiver:\n");
ast_verbose(" SSRC: %u\n", rtp->themssrc);
ast_verbose(" Received packets: %u\n", rtp->rxcount);
- ast_verbose(" Lost packets: %u\n", rtp->rtcp->expected_prior - rtp->rtcp->received_prior);
+ ast_verbose(" Lost packets: %u\n", rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0);
ast_verbose(" Jitter: %.4f\n", rtp->rxjitter);
ast_verbose(" Transit: %.4f\n", rtp->rxtransit);
- ast_verbose(" RR-count: %u\n", rtp->rtcp->rr_count);
+ ast_verbose(" RR-count: %u\n", rtp->rtcp ? rtp->rtcp->rr_count : 0);
ast_verbose("* Our Sender:\n");
ast_verbose(" SSRC: %u\n", rtp->ssrc);
ast_verbose(" Sent packets: %u\n", rtp->txcount);
- ast_verbose(" Lost packets: %u\n", rtp->rtcp->reported_lost);
- ast_verbose(" Jitter: %u\n", rtp->rtcp->reported_jitter / (unsigned int)65536.0);
- ast_verbose(" SR-count: %u\n", rtp->rtcp->sr_count);
- ast_verbose(" RTT: %f\n", rtp->rtcp->rtt);
+ ast_verbose(" Lost packets: %u\n", rtp->rtcp ? rtp->rtcp->reported_lost : 0);
+ ast_verbose(" Jitter: %u\n", rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int)65536.0) : 0);
+ ast_verbose(" SR-count: %u\n", rtp->rtcp ? rtp->rtcp->sr_count : 0);
+ ast_verbose(" RTT: %f\n", rtp->rtcp ? rtp->rtcp->rtt : 0);
}
manager_event(EVENT_FLAG_REPORTING, "RTPReceiverStat", "SSRC: %u\r\n"
@@ -2490,10 +2490,10 @@
"RRCount: %u\r\n",
rtp->themssrc,
rtp->rxcount,
- rtp->rtcp->expected_prior - rtp->rtcp->received_prior,
+ rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0,
rtp->rxjitter,
rtp->rxtransit,
- rtp->rtcp->rr_count);
+ rtp->rtcp ? rtp->rtcp->rr_count : 0);
manager_event(EVENT_FLAG_REPORTING, "RTPSenderStat", "SSRC: %u\r\n"
"SentPackets: %u\r\n"
"LostPackets: %u\r\n"
@@ -2502,10 +2502,10 @@
"RTT: %f\r\n",
rtp->ssrc,
rtp->txcount,
- rtp->rtcp->reported_lost,
- rtp->rtcp->reported_jitter,
- rtp->rtcp->sr_count,
- rtp->rtcp->rtt);
+ rtp->rtcp ? rtp->rtcp->reported_lost : 0,
+ rtp->rtcp ? rtp->rtcp->reported_jitter : 0,
+ rtp->rtcp ? rtp->rtcp->sr_count : 0,
+ rtp->rtcp ? rtp->rtcp->rtt : 0);
if (rtp->smoother)
ast_smoother_free(rtp->smoother);
if (rtp->ioid)
More information about the asterisk-commits
mailing list