|
|
@ -3051,6 +3051,8 @@ static int handle_show_voicemail_users(int fd, int argc, char *argv[])
|
|
|
|
struct dirent *vment;
|
|
|
|
struct dirent *vment;
|
|
|
|
int vmcount = 0;
|
|
|
|
int vmcount = 0;
|
|
|
|
char count[12];
|
|
|
|
char count[12];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((argc == 3) || ((argc == 5) && !strcmp(argv[4],vmu->context))) {
|
|
|
|
make_dir(dirname, 255, vmu->context, vmu->mailbox, "INBOX");
|
|
|
|
make_dir(dirname, 255, vmu->context, vmu->mailbox, "INBOX");
|
|
|
|
if ((vmdir = opendir(dirname))) {
|
|
|
|
if ((vmdir = opendir(dirname))) {
|
|
|
|
/* No matter what the format of VM, there will always be a .txt file for each message. */
|
|
|
|
/* No matter what the format of VM, there will always be a .txt file for each message. */
|
|
|
@ -3061,6 +3063,7 @@ static int handle_show_voicemail_users(int fd, int argc, char *argv[])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
snprintf(count,11,"%d",vmcount);
|
|
|
|
snprintf(count,11,"%d",vmcount);
|
|
|
|
ast_cli(fd, output_format, vmu->context, vmu->mailbox, vmu->fullname, vmu->zonetag, count);
|
|
|
|
ast_cli(fd, output_format, vmu->context, vmu->mailbox, vmu->fullname, vmu->zonetag, count);
|
|
|
|
|
|
|
|
}
|
|
|
|
vmu = vmu->next;
|
|
|
|
vmu = vmu->next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|