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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 29 15:19:51 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15117 
====================================================================== 
Reported By:                sberthelot
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15117
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
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-06-29 15:19 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0107167) dbrooks (manager) - 2009-06-29 15:19
 https://issues.asterisk.org/view.php?id=15117#c107167 
---------------------------------------------------------------------- 
lmadsen: sorry, I don't know what I was thinking, testing with 1.4. Anyway,
I just tried to recreate with 1.6.2.0-beta2, but was still unable to
reproduce the issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-29 15:19 dbrooks        Note Added: 0107167                          
======================================================================




More information about the asterisk-bugs mailing list