[asterisk-commits] dhubbard: trunk r79724 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 16 12:44:25 CDT 2007
Author: dhubbard
Date: Thu Aug 16 12:44:25 2007
New Revision: 79724
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79724
Log:
added counter for voicemail show users, issue 10462, thanks junky
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=79724&r1=79723&r2=79724
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Aug 16 12:44:25 2007
@@ -7505,6 +7505,7 @@
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 @@
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;
}
More information about the asterisk-commits
mailing list