git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-11-12 00:09:43 +00:00
parent 8605bf0104
commit 64aaaa1f4a
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2005-11-11 Kevin P. Fleming <kpfleming@digium.com>
* apps/app_voicemail.c (close_mailbox): correct previous commit (issue #5663)
* channels/chan_sip.c (transmit_invite): remove useless debug message; don't try to add OSP tokens to OPTIONS pings
* apps/app_voicemail.c (close_mailbox): properly remove deleted messages at mailbox close time (issue #5663)

View File

@@ -3904,7 +3904,7 @@ static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu)
}
/* Delete ALL remaining messages */
nummsg = x;
nummsg = x - 1;
for (x = vms->curmsg + 1; x <= nummsg; x++) {
make_file(vms->fn, sizeof(vms->fn), vms->curdir, x);
if (EXISTS(vms->curdir, x, vms->fn, NULL))