[Asterisk-Users] RE: voicemail file permissions

Carlton J. O'Riley CORILEY at comcast.net
Thu Dec 4 12:23:45 MST 2003


Here is a script I use in a cron job that runs every 5 minutes to make it so
that my webserver (which runs as the apache group) can access the voicemails
through the web.  Seems to fix my problems.  Although if I get the email
there is a voicemail it might be 5 minutes before I can get to it via the
web, but you could increase the frequency at which this job runs.  Five
minutes has been fine for me.  It'd be nice to be able to set the owner and
group and permissions for voicemail files in the configuration file for
voicemail.  If I had time I'd probably do it myself.

Carlton

#!/bin/sh
/bin/chgrp -R apache /var/spool/asterisk/vm/*
/bin/chmod -R g+rw /var/spool/asterisk/vm/*

>  hi, i realised that when voicemails are recorded it is set to 700 file =
permission and which leads to a serrious problem when 
>accessing the = voicemail thru the web using vmail,cgi
>
>  how can i automatically set the file permission to 755 or 777 so that = i
can make it readeable from the web? which file in * helps
> to record = the voicemail and create that voicemail in a certain dir?? if
any onw = knows, i can perhaps find that line and change as > nesseciate.
>
>  anyone tried vmail.cgi could help.



More information about the asterisk-users mailing list