[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
Thu Aug 23 23:31:53 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:                     assigned
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:              08-23-2007 23: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.
====================================================================== 

---------------------------------------------------------------------- 
 rayjay - 08-23-07 23:31  
---------------------------------------------------------------------- 
I've had a little look into the problem and it appears to be related to
Asterisk not being able to handle an 'Unexpected Tagged response' event in
the UW-IMAP code (imap4r1.c).  It seems that the reply->tag is not the same
as the tag passed to imap_reply, so UW-IMAP reports an error, sets the
stream to unhealthy and returns a "[CLOSED] IMAP connection broken" event.

I always seem to get Asterisk to hang when this happens according to the
log.  It seems Asterisk can't handle the unexpected here and gets stuck. 
My guess is that it is happening via a 'mail_search_full' call in the
app_voicemail.c code.  I will keep investigating and try to replicate the
issue. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-23-07 23:31  rayjay         Note Added: 0069349                          
======================================================================




More information about the asterisk-bugs mailing list