[asterisk-bugs] [Asterisk 0010487]: IMAP integration with MS Exchange crashes Asterisk-1.4.10.1

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Oct 2 15:43:45 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10487 
====================================================================== 
Reported By:                ewilhelmsen
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   10487
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.10.1  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-17-2007 12:59 CDT
Last Modified:              10-02-2007 15:43 CDT
====================================================================== 
Summary:                    IMAP integration with MS Exchange crashes
Asterisk-1.4.10.1
Description: 
When setting voicemail.conf to MS Exchange IMAP server I am able to record
a message and it will send to the users Exchange Inbox but when MS Exchange
sends an IMAP response to Asterisk it does not know the tagged response for
SEARCH and NOOP. After this Warning:

[Aug 17 10:59:19] WARNING[26191]: app_voicemail.c:8572 mm_log: IMAP
Warning: Unexpected tagged response: 0000003a OK SEARCH completed.
[Aug 17 10:59:19] WARNING[26204]: app_voicemail.c:8572 mm_log: IMAP
Warning: Unexpected tagged response: 0000003e OK NOOP
completed. 

Asterisk crashes and needs to be Ctrl-C to exit and restarted.
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 10-02-07 15:43  
---------------------------------------------------------------------- 
Bad news. My last note I sent out is simply not true. I was misinterpreting
debug output on the console, and when I followed up on that, I found that I
was completely wrong about what I was seeing.

I spent all day yesterday and today working on this, and I've come to the
conclusion that it's just not possible to accurately get MWI information
without searching the entire mailbox (or doing a similarly expensive
operation). The reason for this is that in the case of IMAP, changes to the
mailbox can be made outside of Asterisk, and aside from searching the
mailbox, there's no way for Asterisk to know what changes have been made.

I came up with a few ideas for speeding things up, but the problem is that
none of these local fixes could detect changes that occur due to a user
checking voicemail via an e-mail client.

As such, I really have no option but to keep the code as is, but recommend
that either 1) you disable MWI or 2) you set your MWI interval to be longer
than the default. I don't think you need to go to quite the same lengths
that rayjay did, but maybe set MWI to be checked every 2 or 3 minutes and
things should hopefully not be as slow moving.

I hate having to compromise like this, but aside from a total rewrite of
how Asterisk's IMAP storage works, this is the only solution I can offer. 

I'm going to leave this issue open for a while longer in case the MWI
configuration changes recommended don't fix things. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-02-07 15:43  putnopvut      Note Added: 0071359                          
======================================================================




More information about the asterisk-bugs mailing list