]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: close_mailbox needs to respect additional messages while mailbox is...
authorAlec L Davis <sivad.a@paradise.net.nz>
Fri, 1 Apr 2011 06:46:56 +0000 (06:46 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Fri, 1 Apr 2011 06:46:56 +0000 (06:46 +0000)
commitc8750647143f3c152ad2c87d7ab40c2e88ccfc55
tree9e52476bb68b41785d72036a5af42b31f3766680
parentc0e4bdd6091781cf0f3c18c55749ddebe81b8646
app_voicemail: close_mailbox needs to respect additional messages while mailbox is open.

close_mailbox leave gaps in message sequence if messages are deleted and new messages
arrive during this time, this is because the shuffle down to slot 0, only shuffles
the number of pre-existing messages when mailbox is opened, ignoring new arrivals.

Fix: in close_mailbox re-evaluate number of messages before the shuffle, this then includes new arrivals.

Happens on filebased or ODBC storage.

(issues #19032,#18582,#18692,#18998)
Reported by: alecdavis,tootai,afosorio

Review: https://reviewboard.asterisk.org/r/1153/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@312070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c