[asterisk-commits] oej: branch oej/sipchanstats r122868 - /team/oej/sipchanstats/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 16 06:57:13 CDT 2008


Author: oej
Date: Mon Jun 16 06:57:12 2008
New Revision: 122868

URL: http://svn.digium.com/view/asterisk?view=rev&rev=122868
Log:
(I refrain from any comments on this patch. Please contact my media agent.)

Modified:
    team/oej/sipchanstats/channels/chan_sip.c

Modified: team/oej/sipchanstats/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/sipchanstats/channels/chan_sip.c?view=diff&rev=122868&r1=122867&r2=122868
==============================================================================
--- team/oej/sipchanstats/channels/chan_sip.c (original)
+++ team/oej/sipchanstats/channels/chan_sip.c Mon Jun 16 06:57:12 2008
@@ -10968,9 +10968,10 @@
 	cur = iflist;
 	ast_cli(fd, FORMAT2, "Peer", "Call ID", "Duration", "Recv: Pack", "Lost", "%", "Jitter", "Send: Pack", "Lost", "Jitter");
 	for (; cur; cur = cur->next) {
-		unsigned int rxcount = ast_rtp_get_qosvalue(cur->rtp, AST_RTP_RXCOUNT);
-		unsigned int txcount = ast_rtp_get_qosvalue(cur->rtp, AST_RTP_TXCOUNT);
+		unsigned int rxcount;
+		unsigned int txcount;
 		struct ast_channel *c = cur->owner;
+
 		if (cur->subscribed != NONE) /* Subscriptions */
 			continue;
 
@@ -10979,6 +10980,8 @@
 				ast_cli(fd, "%-15.15s  %-11.11s (inv state: %s) -- %s\n", ast_inet_ntoa(cur->sa.sin_addr), cur->callid, invitestate2string[cur->invitestate].desc, "-- No RTP active");
 			continue;
 		}
+		rxcount = ast_rtp_get_qosvalue(cur->rtp, AST_RTP_RXCOUNT);
+		txcount = ast_rtp_get_qosvalue(cur->rtp, AST_RTP_TXCOUNT);
 
 		/* Find the duration of this channel */
 		if (c && c->cdr && !ast_tvzero(c->cdr->start)) {




More information about the asterisk-commits mailing list