Merged revisions 71877 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 19:06:47 +0000 (19:06 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 19:06:47 +0000 (19:06 +0000)
commite7ca771f95bea6658642396224805877d4fdeaab
tree430c1a4101fe2509f326dd64c2b7ce9f0799e0d9
parente3cf86f4b36777624d10f65f04bb2665e2e7f508
Merged revisions 71877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71877 | mmichelson | 2007-06-26 14:00:05 -0500 (Tue, 26 Jun 2007) | 11 lines

A few changes, the ultimate goal of which is to keep better track of the number of messages
that a mailbox currently has. A description of the changes:

1. Changed the "updated" field of the vm_state struct to act more as a binary semaphore than a
   counting semaphore, since its current implementation made the inboxcount function not work properly.
   This change falls in line with a change made by UPenn with their IMAP setup and helps to sync our changes with theirs.
2. Eliminated some redundant calls to get_vm_state_by_mailbox inside leave_voicemail
3. Use the play_folder variable to keep track of the number of old and new messages in a mailbox as the messages are deleted
4. Added an increment to the number of new messages that was not there previously in the leave_voicemail function

........

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