[asterisk-commits] oej: branch oej/sipchanstats r128453 - /team/oej/sipchanstats/main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 6 10:07:03 CDT 2008


Author: oej
Date: Sun Jul  6 10:07:03 2008
New Revision: 128453

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128453
Log:
Backporting File's changes to trunk

Modified:
    team/oej/sipchanstats/main/rtp.c

Modified: team/oej/sipchanstats/main/rtp.c
URL: http://svn.digium.com/view/asterisk/team/oej/sipchanstats/main/rtp.c?view=diff&rev=128453&r1=128452&r2=128453
==============================================================================
--- team/oej/sipchanstats/main/rtp.c (original)
+++ team/oej/sipchanstats/main/rtp.c Sun Jul  6 10:07:03 2008
@@ -2079,6 +2079,7 @@
 	rtp->rxseqno = 0;
 }
 
+/*! \brief Return RTCP QoS values during the call (used in "SIP show channelstats") */
 unsigned int ast_rtp_get_qosvalue(struct ast_rtp *rtp, enum ast_rtp_qos_vars value)
 {
 	if (rtp == NULL) {
@@ -2098,13 +2099,13 @@
 	case AST_RTP_TXJITTER:
 		return (unsigned int) (rtp->rxjitter * 100.0);
 	case AST_RTP_RXJITTER:
-		return (unsigned int) rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0;
+		return (unsigned int) (rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0);
 	case AST_RTP_RXPLOSS:
 		return rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0;
 	case AST_RTP_TXPLOSS:
 		return rtp->rtcp ? rtp->rtcp->reported_lost : 0;
 	case AST_RTP_RTT:
-		return (unsigned int) rtp->rtcp ? rtp->rtcp->rtt * 100 : 0;
+		return (unsigned int) (rtp->rtcp ? rtp->rtcp->rtt * 100 : 0);
 	}
 	return 0;	/* To make the compiler happy */
 }




More information about the asterisk-commits mailing list