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)
}
/* 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))