https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r303677 | jpeeler | 2011-01-25 10:59:28 -0600 (Tue, 25 Jan 2011) | 26 lines
Merged revisions 303676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r303676 | jpeeler | 2011-01-25 10:58:29 -0600 (Tue, 25 Jan 2011) | 20 lines
Fix voicemail sequencing for file based storage.
A previous change was made to account for when the number of voicemail messages
exceeds the max limit to be handled properly, but it caused gaps in the messages
to not be properly handled. This has now been resolved.
In later non 1.4 branches, it appears that resequencing wasn't even occurring
due from what appears and accidental code removal.
(closes issue #18498)
Reported by: JJCinAZ
Patches:
bug18498v2.patch uploaded by jpeeler (license 325)
(closes issue #18486)
Reported by: bluefox
Patches:
bug18486.patch uploaded by jpeeler (license 325)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@303678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
@ -7735,8 +7773,12 @@ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu, int box)
if(last_msg<-1){
if(last_msg<-1){
returnlast_msg;
returnlast_msg;
}elseif(vms->lastmsg!=last_msg){
}
ast_log(LOG_NOTICE,"Mailbox: %s, expected %d but found %d message(s) in box with max threshold of %d.\n",vms->curdir,last_msg+1,vms->lastmsg+1,vmu->maxmsg);
#ifndef ODBC_STORAGE
elseif(vms->lastmsg!=last_msg){
ast_log(LOG_NOTICE,"Resequencing mailbox: %s, expected %d but found %d message(s) in box with max threshold of %d.\n",vms->curdir,last_msg+1,vms->lastmsg+1,vmu->maxmsg);