diff options
author | Dwayne M. Hubbard <dwayne.hubbard@gmail.com> | 2007-08-16 17:44:25 +0000 |
---|---|---|
committer | Dwayne M. Hubbard <dwayne.hubbard@gmail.com> | 2007-08-16 17:44:25 +0000 |
commit | 46b75d5f1790ce3bdeabce0e2f9ebe609da3b261 (patch) | |
tree | fd8b68f70d81034753adad3105294b73f903ad7b /apps/app_voicemail.c | |
parent | c33e2ec2ae43496106b16e08d3c5daaa640ea916 (diff) |
added counter for voicemail show users, issue 10462, thanks junky
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5a8f4521c..c2e8afdac 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -7505,6 +7505,7 @@ static int handle_voicemail_show_users(int fd, int argc, char *argv[]) struct ast_vm_user *vmu; char *output_format = "%-10s %-5s %-25s %-10s %6s\n"; const char *context = NULL; + int users_counter = 0; if ((argc < 3) || (argc > 5) || (argc == 4)) return RESULT_SHOWUSAGE; @@ -7553,9 +7554,11 @@ static int handle_voicemail_show_users(int fd, int argc, char *argv[]) inboxcount(tmp, &newmsgs, &oldmsgs); snprintf(count,sizeof(count),"%d",newmsgs); ast_cli(fd, output_format, vmu->context, vmu->mailbox, vmu->fullname, vmu->zonetag, count); + users_counter++; } } AST_LIST_UNLOCK(&users); + ast_cli(fd, "%d voicemail users configured.\n", users_counter); return RESULT_SUCCESS; } |