[asterisk-bugs] [JIRA] (ASTERISK-24023) [patch] app_voicemail crash when using IMAP greetings and forwarding messages
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Thu Jul 10 16:33:58 CDT 2014
Matt Jordan created ASTERISK-24023:
--------------------------------------
Summary: [patch] app_voicemail crash when using IMAP greetings and forwarding messages
Key: ASTERISK-24023
URL: https://issues.asterisk.org/jira/browse/ASTERISK-24023
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Applications/app_voicemail/IMAP
Affects Versions: 11.8.1
Reporter: Ben Smithurst
Assignee: Ben Smithurst
Asterisk currently crashes when trying to forward a message to another user - I think the combination of IMAP storage + IMAP greetings is the problem.
What seems to happen is that Asterisk changes to the Greetings folder in the *source* mailbox instead of the destination. It then doesn't change back, tries to retrieve message X (the one being forwarded) from Greetings, which doesn't exist, and libc-client calls abort().
The reason appears to be due to the per-thread 'interactive' vmstate storage, Asterisk seems to assume that the per-thread requests will always be for the same mailbox, but when forwarding, that's not true. So the fix is to check that the imapuser/mailbox/context (as appropriate) matches, when obtaining the interactive per-thread state.
We can easily reproduce this problem, it appears to happen every time during our tests.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list