[asterisk-bugs] [Asterisk 0015117]: crash in voicemail when more than maxmsg already stored in folder

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 15 05:31:59 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15117 
====================================================================== 
Reported By:                sberthelot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15117
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.0-beta2 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-15 05:31 CDT
Last Modified:              2009-05-15 05:31 CDT
====================================================================== 
Summary:                    crash in voicemail when more than maxmsg already
stored in folder
Description: 
I've looked into the voicemail bug reports and did not find this one, so I
hope it's not duplicate (since it's very trivial)

I have installed asterisk 1.6.2.0-beta2
It was an upgrade from a 1.4.x system but I don't think it's relevant
here.
There were some voicemail boxes with a lot of messages (around 60-80) and
I wanted to use the upgrade to also set a maxmsg count in voicemail.conf
(I've put maxmsg=20 in voicemail.conf, previously it was commented)

I have asked my users to purge their boxes and when they go to the
maxmsg+1 th message asterisk crashes !
Nothing specific in debug or full log more than :
[May 15 12:09:42] WARNING[18594] app_voicemail.c: No message attribute
file?!! (/var/spool/asterisk/voicemail/default/212/Old/msg0019.txt)

It's always reproducible until I empty their voicemail boxes by hand on
the filesystem.

I know that setting the value lower than the count of messages in a box
could make some messages unreadable but certainly not to a complete
asterisk crash!

I suspect that on a running system (without upgrading asterisk) lowering
maxmsg with voicemail boxes having more than the new value may lead to an
unwanted crash. I know it's a corner case but it should get treated
correctly in app_voicemail according to me ...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-15 05:31 sberthelot     New Issue                                    
2009-05-15 05:31 sberthelot     Asterisk Version          => 1.6.2.0-beta2   
2009-05-15 05:31 sberthelot     Regression                => No              
2009-05-15 05:31 sberthelot     SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list