diff --git a/ChangeLog b/ChangeLog index 4dd599dbbf95496adad5c5cd416e0b0c8a93bcb9..413dbf349951490d1713170ae23fd9c8a8adec7f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b4b77c71d487f87b8233e3ae9f1da6ee67e0dae4..d881fca21a71198da71ed44ac7f550764a418606 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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))