[asterisk-commits] dhubbard: trunk r79725 - /trunk/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 16 13:23:39 CDT 2007


Author: dhubbard
Date: Thu Aug 16 13:23:39 2007
New Revision: 79725

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79725
Log:
added counter for iax2 show registry CLI output, closes issue 10461, thanks junky

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=79725&r1=79724&r2=79725
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu Aug 16 13:23:39 2007
@@ -4652,6 +4652,7 @@
 
 	char host[80];
 	char perceived[80];
+	int counter = 0;
 	if (argc != 3)
 		return RESULT_SHOWUSAGE;
 	ast_cli(fd, FORMAT2, "Host", "dnsmgr", "Username", "Perceived", "Refresh", "State");
@@ -4665,8 +4666,10 @@
 		ast_cli(fd, FORMAT, host, 
 					(reg->dnsmgr) ? "Y" : "N", 
 					reg->username, perceived, reg->refresh, regstate2str(reg->regstate));
+		counter++;
 	}
 	AST_LIST_UNLOCK(&registrations);
+	ast_cli(fd, "%d IAX2 registrations.\n", counter);
 	return RESULT_SUCCESS;
 #undef FORMAT
 #undef FORMAT2




More information about the asterisk-commits mailing list