summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-08-22 18:47:19 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-08-22 18:47:19 +0000
commit26ea6ea391c85db713391f2701e4a1e2c375260a (patch)
tree0bcefbdd1fce0250e2e1eb3c8131cc4880000214 /pbx.c
parent971091a17ce26c36dcc8940b6f3a50d750b6e4ae (diff)
add count to 'show functions' CLI command (issue #4991)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 3a60fccfd..fbce71238 100755
--- a/pbx.c
+++ b/pbx.c
@@ -1124,12 +1124,14 @@ icky:
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;
}