[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
Wed Oct 10 11:31:16 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-10-2007 11:31 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-10-07 11:31  
---------------------------------------------------------------------- 
I understand where you're coming from. The problem is that Asterisk's
implementation of its IMAP storage is somewhat non-traditional.

Typically, a client will connect to a mailbox at startup and ping the
mailbox every so often to detect changes in the mailbox. If Asterisk were
implemented this way, then the task of detecting changes in a mailbox would
be as easy as pinging the mailbox and interpreting callbacks.

Asterisk, however, opens connections to mailboxes as they are needed. So
as a result, it has no point of reference on the server to detect changes
from. Because of this, the method of searching the mailboxes is in place to
determine the number of old and new messages.

When trying to find a workaround, I found several ways to use to detect
when a new message had arrived. I could NOT, however, find any way to
detect when a user had checked their messages via an e-mail client. With
regards to MWI, this means that the phone would never be able to tell that
there were no new messages waiting.

As far as an explanation as to why Asterisk is implemented this way: I
simply don't know. The original author of the IMAP code may have had some
valid reasons, but I'm not sure what those were. I am considering rewriting
the IMAP-specific voicemail code at some point, but even when that is
finished, a change that invasive would not be merged into 1.4, but would be
in trunk. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-10-07 11:31  putnopvut      Note Added: 0071776                          
======================================================================




More information about the asterisk-bugs mailing list