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

Muiz Motani muiz at askaritech.com
Thu Jun 18 12:11:48 CDT 2009


I haven't received a reply to this in asterisk-users, so I am reposting
here on asterisk-dev.

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-dev mailing list