[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 Dec 6 14:24:56 CST 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:              12-06-2007 14:24 CST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 jaroth - 12-06-07 14:24  
---------------------------------------------------------------------- 
I have had a similar experience with one of the problems addressed in this
report, specifically the following crash:

http://bugs.digium.com/view.php?id=3  0x006e1f4d in fatal (
    string=0x774b3a0 "Lock when already locked, mbx={XXX}INBOX")
    at ftl_unix.c:38
http://bugs.digium.com/view.php?id=4  0x006f0893 in mail_lock (stream=0x902b928)
at mail.c:3165
http://bugs.digium.com/view.php?id=5  0x0071396b in imap_send (stream=0x902b928,
cmd=0x7a4630 "SELECT",
args=0x774bd50) at imap4r1.c:2902
http://bugs.digium.com/view.php?id=6  0x0071a2e1 in imap_open (stream=0x902b928)
at imap4r1.c:970
http://bugs.digium.com/view.php?id=7  0x006f39fc in mail_open_work (d=0x7b43a0,
stream=0x902b928, 
    name=0xb521470 "{XXXC}INBOX", options=Variable "options" is not
available.
) at mail.c:1308
http://bugs.digium.com/view.php?id=8  0x006f8f71 in mail_open (stream=0x902b928,

    name=0x774d900 "{XXXX}INBOX", options=Variable "options" is not
available.
) at mail.c:1230
http://bugs.digium.com/view.php?id=9  0x006d141f in init_mailstream
(vms=0x90263f0, box=0) at
app_voicemail.c:5293
http://bugs.digium.com/view.php?id=10 0x006c7850 in inboxcount
(mailbox=0x774eaf0 "67165 at default",
newmsgs=0x774ebfc, oldmsgs=0x774ebf8)

This seems to have happened when the mailbox was being accessed (leaving a
message) and at the same time the VMCOUNT method was called on the same
mailbox from the dialplan.  I can't seem to reproduce this problem, but it
seems from the logs that both the VMCOUNT method and voicemail were both
trying to open a new mailstream to the same mailbox around the same time
(in mail_open).  It might be possible to use the portion of this patch that
locks the mail_open code for exclusive access without the need to lock all
of the mail access methods.  This might solve the problems with slow access
to other mailbox functions. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-06-07 14:24  jaroth         Note Added: 0074943                          
======================================================================




More information about the asterisk-bugs mailing list