[Asterisk-Users] Vmail.cgi Bahhh!!
niles at atheos.net
niles at atheos.net
Wed Oct 20 07:21:30 MST 2004
On Oct 20, 2004, at 8:49 AM, Your Own ISP .com wrote:
> OK, been at this for a few hours now.
>
> I am on Fedora 2 trying like heck to get the web based Vmail thing
> working.
>
> I have it to the point where I can login to it successfully but no
> messages
> ever show up there even though I know they exist.
>
> I am getting the voicemail messages OK in my email.
>
> I CHMOD'd the vmail dir to 777 just for testing purposes, I installed
> the
> required Perl Module.
>
> Not sure what's left to try, any ideas would be most welcome.
>
>
> Thanks,
> Todd Routhier
> Lightwave Technologies, LLC.
>
>
Todd,
asterisk records the files to the filesystem with root permissions,
which
a properly configured apache installation doesn't have access too.
I worked around this by setting up a cronjob to chmod 777 all the
voicemail
files once a minute, which probably isn't the most elegant solution to
this problem.
my crontab entry:
# cheap way to fix our permissions for voicemail
* * * * * /etc/vm_chmod.bat > /dev/null
/etc/vm_chmod.bat:
#!/bin/sh
chmod -R 777 /var/spool/asterisk/vm
If someone else doesn't give a better solution, you can try this.
Niles
More information about the asterisk-users
mailing list