[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
Mon Sep 3 06:26:59 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:              09-03-2007 06:26 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 - 09-03-07 06:26  
---------------------------------------------------------------------- 
I concur that this is not an "Exchange only" problem.  We have had several
hangs with Courier IMAP now.  Although none for the last 5 or so days.  I'm
not sure if this is due to the fact that Asterisk has been restarted
manually a couple of times during that time or whether it is due to changes
on the IMAP server to increase idle timeouts etc.

I'm not sure if it is related or not but in my testing when configuring up
a Dovecot server I can get Asterisk to crash every time by getting Dovecot
to allow both PLAIN and LOGIN authentication.  When I do this Asterisk core
dumps immediately when trying to connect to the IMAP server immediately
after a 'Security Problem' warning line from UW-IMAP auth_pla.c code:

[Sep  3 23:35:52] WARNING[31741]: app_voicemail.c:8594 mm_log: IMAP
Warning: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN
myhost*CLI>
Disconnected from Asterisk server
/usr/sbin/safe_asterisk: line 111: 31515 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
>&/dev/${TTY} </dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.

Again, I wouldn't expect Asterisk to hang/core dump on the back of a IMAP
warning response from UW-IMAP which appears to be the case with the
'Unexpected tagged response' too?  I would expect Asterisk rather to simply
fail the Voicemail connection. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-03-07 06:26  rayjay         Note Added: 0069855                          
======================================================================




More information about the asterisk-bugs mailing list