[asterisk-commits] oej: branch oej/pinequality-manager-qos-reports-1.4 r241849 - /team/oej/pineq...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 03:34:58 CST 2010


Author: oej
Date: Thu Jan 21 03:34:55 2010
New Revision: 241849

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=241849
Log:
Change to the format agreed to with Tilghman.

Modified:
    team/oej/pinequality-manager-qos-reports-1.4/channels/chan_sip.c

Modified: team/oej/pinequality-manager-qos-reports-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinequality-manager-qos-reports-1.4/channels/chan_sip.c?view=diff&rev=241849&r1=241848&r2=241849
==============================================================================
--- team/oej/pinequality-manager-qos-reports-1.4/channels/chan_sip.c (original)
+++ team/oej/pinequality-manager-qos-reports-1.4/channels/chan_sip.c Thu Jan 21 03:34:55 2010
@@ -11088,23 +11088,23 @@
 	char buf[SIPBUFSIZE];
 
 	get_rtp_quality(dialog, mediatype, "local_ssrc", buf, SIPBUFSIZE );
-	astman_append(s, "LocalSSRC(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.LocalSSRC: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "remote_ssrc", buf, SIPBUFSIZE );
-	astman_append(s, "RemoteSSRC(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.RemoteSSRC: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "local_jitter", buf, SIPBUFSIZE );
-	astman_append(s, "LocalJitter(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.LocalJitter: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "local_count", buf, SIPBUFSIZE );
-	astman_append(s, "LocalPacketCount(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.LocalPacketCount: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "remote_count", buf, SIPBUFSIZE );
-	astman_append(s, "RemotePacketCount(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.RemotePacketCount: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "local_lostpackets", buf, SIPBUFSIZE );
-	astman_append(s, "LocalLostPackets(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.LocalLostPackets: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "remote_lostpackets", buf, SIPBUFSIZE );
-	astman_append(s, "RemoteLostPackets(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.RemoteLostPackets: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "remote_jitter", buf, SIPBUFSIZE );
-	astman_append(s, "RemoteJitter(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.RemoteJitter: %s\r\n", mediatype, buf);
 	get_rtp_quality(dialog, mediatype, "rtt", buf, SIPBUFSIZE );
-	astman_append(s, "MediaRtt(%s): %s\r\n", mediatype, buf);
+	astman_append(s, "%s.MediaRtt: %s\r\n", mediatype, buf);
 }
 		
 static char mandescr_sip_channel[] = 
@@ -11112,9 +11112,9 @@
 "Variables: \n"
 "  Channel: <name>        The channel name (AST) you want to check.\n"
 "  ActionID: <id>	  Optional action ID for this AMI transaction.\n"
-"  Datatype: <name>	  Optional parameter name required. If not specified, all data will be sent\n"
+"  Elementname: <name>	  Optional parameter name required. If not specified, all data will be sent\n"
 "\n"
-"  Datatype 	Description\n"
+"  Elementname 	Description\n"
 "	qos	Current QoS value for this channel (sender and receiver)\n"
 "\n";
 
@@ -11159,7 +11159,7 @@
 	/* Ok, we have a channel with a SIP dialog attached,
 	   time to find out what they want
 	   ...and when my plane is about to leave from ARN */
-	datatype = astman_get_header(m,"Datatype");
+	datatype = astman_get_header(m,"elementname");
 	if (ast_strlen_zero(datatype) || !strcasecmp(datatype, "all")) {
 		all = TRUE;
 	}
@@ -11176,10 +11176,10 @@
 			sentsuccess = TRUE;
 		}
 		if (dialog->rtp) {
-			manager_add_qos(s, "audio", dialog);
+			manager_add_qos(s, "Audio", dialog);
 		}
 		if (dialog->vrtp) {
-			manager_add_qos(s, "video", dialog);
+			manager_add_qos(s, "Video", dialog);
 		}
 	} else if (!all) {
 		char errbuf[SIPBUFSIZE];




More information about the asterisk-commits mailing list