[Asterisk-cvs] asterisk pbx.c,1.265,1.266

kpfleming kpfleming
Mon Aug 22 14:45:13 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv8513

Modified Files:
	pbx.c 
Log Message:
add count to 'show functions' CLI command (issue #4991)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -d -r1.265 -r1.266
--- pbx.c	19 Aug 2005 07:12:53 -0000	1.265
+++ pbx.c	22 Aug 2005 18:47:19 -0000	1.266
@@ -1124,12 +1124,14 @@
 static int handle_show_functions(int fd, int argc, char *argv[])
 {
 	struct ast_custom_function *acf;
+	int count_acf = 0;
 
 	ast_cli(fd, "Installed Custom Functions:\n--------------------------------------------------------------------------------\n");
 	for (acf = acf_root ; acf; acf = acf->next) {
 		ast_cli(fd, "%-20.20s  %-35.35s  %s\n", acf->name, acf->syntax, acf->synopsis);
+		count_acf++;
 	}
-	ast_cli(fd, "\n");
+	ast_cli(fd, "%d custom functions installed.\n", count_acf);
 	return 0;
 }
 




More information about the svn-commits mailing list