Fix the ability to retrieve voicemail messages from IMAP.
authorMark Michelson <mmichelson@digium.com>
Fri, 3 Apr 2009 14:32:05 +0000 (14:32 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 3 Apr 2009 14:32:05 +0000 (14:32 +0000)
commit5c53b2226dbfe043f87d7d1fb3366e0398983ecb
tree66903c7ef85a17ff9b0b970e0d408cc1fdd63674
parentfde695bb7f440798fd2d94a2d4aaf942023a6243
Fix the ability to retrieve voicemail messages from IMAP.

A recent change made interactive vm_states no longer get
added to the list of vm_states and instead get stored in
thread-local storage.

In trunk and all the 1.6.X branches, the problem is that
when we search for messages in a voicemail box, we would
attempt to update the appropriate vm_state struct by directly
searching in the list of vm_states instead of using the
get_vm_state_by_imap_user function. This meant we could not
find the interactive vm_state that we wanted.

(closes issue #14685)
Reported by: BlargMaN
Patches:
      14685.patch uploaded by mmichelson (license 60)
Tested by: BlargMaN, qualleyiv, mmichelson

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