[asterisk-bugs] [Asterisk 0015364]: File Permissions On Voicemails Left To Multiple Recipients Incorrect

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 25 15:51:19 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15364 
====================================================================== 
Reported By:                muiz
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15364
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-19 17:05 CDT
Last Modified:              2009-08-25 15:51 CDT
====================================================================== 
Summary:                    File Permissions On Voicemails Left To Multiple
Recipients Incorrect
Description: 
It is possible to leave a single voicemail to multiple recipients using
the following syntaz for the VoiceMail command:

exten => s,1,VoiceMail(101&102&103)

This will leave voicemail in the INBOX for extension 101, 102 and 103.
The permissions for the voicemail audio file in 101 are correctly set to
0666. However, for the copies made in 102 and 103 the permissions are
set to 0600. This means that scripts which run under a different user
such as Apache running as apache can not read the file, hence vmail.cgi
fails. 

It looks like the copy of the voicemail is done by copy_message() in
app_voicemail.c and this function does not set the permissions of the
copy.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-25 15:51 tilghman       Asterisk Version         1.4.25 => SVN       
2009-08-25 15:51 tilghman       Reproducibility          sometimes => always 
======================================================================




More information about the asterisk-bugs mailing list