[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 11:26:29 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 11:26 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0107135) lmadsen (administrator) - 2009-06-29 11:26
 https://issues.asterisk.org/view.php?id=15117#c107135 
---------------------------------------------------------------------- 
dbrooks: this issue is reported against Asterisk-1.6.2.0-beta2. Could you
try reproducing with that issue? If you can reproduce it, can you update to
1.6.2 branch (latest) and try again. If it does not crash in the same test,
close this issue. If you can reproduce it, then mark this as Acknowledged.

Thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-29 11:26 lmadsen        Note Added: 0107135                          
======================================================================




More information about the asterisk-bugs mailing list