[asterisk-users] File Permissions On Voicemails Left To Multiple Recipients

Muiz Motani muiz at askaritech.com
Wed Jun 17 16:48:19 CDT 2009


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.

Has anybody else run into this problem?

Muiz Motani




More information about the asterisk-users mailing list