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.4@303676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
/* for local storage, checks directory for messages up to maxmsg limit */
last_msg=last_message_index(vmu,vms->curdir);
if(last_msg<-1)
if(last_msg<-1){
returnlast_msg;
}
#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);