]> git.ipfire.org Git - thirdparty/asterisk.git/commit
A few changes, the ultimate goal of which is to keep better track of the number of...
authorMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 19:00:05 +0000 (19:00 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 26 Jun 2007 19:00:05 +0000 (19:00 +0000)
commit79332488f7e3b1069ca330ffedccfee7cd5da94c
treed056e3e9685bf20eb184b71085a385e9b0d9ddf6
parent91df522edba5b36dfbaaac5bd91d97e535acc986
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/branches/1.4@71877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c