Summary:ASTERISK-13007: [patch] Hang up during call forward into voicemail crashes Asterisk.
Reporter:James Rothenberger (jaroth)Labels:
Date Opened:2008-11-03 09:53:36.000-0600Date Closed:2008-11-03 16:16:17.000-0600
Versions:Frequency of
Environment:Attachments:( 0) forwardhangup.patch
I've discovered an always recreatable crash:
Here is the call secenario:

1) set number1 to call forward all to number2
2) call number1 from number2
3) "End Call" quickly: number2 starts to rings itself.
4) Press "Reject" to send call to voicemail.

At this point the call is sent to Asterisk and Asterisk starts VoiceMail(number2) although the phone has already hung up.

The crash is in the expunge process where the IMAP stream is actually NULL at this point.  

This patch checks for a NULL mailstream before expunging messages.
Comments:By: Digium Subversion (svnbot) 2008-11-03 16:16:16.000-0600

Repository: asterisk
Revision: 154066

U   branches/1.4/apps/app_voicemail.c

r154066 | tilghman | 2008-11-03 16:16:15 -0600 (Mon, 03 Nov 2008) | 5 lines

Attempting to expunge a mailbox when the mailstream is NULL will crash Asterisk.
(Closes issue ASTERISK-13007)
Reported by: jaroth
Patch by: me (modified jaroth's patch)