Hi all, first post here, so be gentle
Heres the problem.
If a voicemail is left on an extension, it appears that the permissions are set wrong on the files, as when the message is tried to be retreived (from the phone) then the asterisk console shows the following
== Parsing ‘/var/spool/asterisk/voicemail/default/200/INBOX/msg0000.txt’: Not found (Permission denied)
here is a ls -l of the offending directory
-rwxr-xr-x 1 asterisk asterisk 13728 2007-10-29 16:55 msg0000.gsm
-------rw- 1 asterisk asterisk 277 2007-10-29 16:55 msg0000.txt
-rwxr-xr-x 1 asterisk asterisk 133164 2007-10-29 16:55 msg0000.wav
-rwxr-xr-x 1 asterisk asterisk 13580 2007-10-29 16:55 msg0000.WAV
It’s obvious where the problem is, but what is not obvious, is why is asterisk setting the permissions in this way?
If I chmod 755 msg0000.txt then I can retrieve my messages. The next time a message is left, the same probelm occurs.
I have been reading up for the past 2 days, and have seen several discussions where people have had a similar issue through the web interface, and that is caused by the webserver running as www-data or such, but I cannot find any information on this particular bug or misconfiguration on my part.
My apache2 server runs as user asterisk in the asterisk group. My asterisk server is started from root by amportal start which runs the process as asterisk asterisk.
I think i have everything set the way it should be.
Any help much appreciated, because apart from this, it is all working sweetly. It’s even trunked to a remote asterisk server running freepbx 1.2 and asterisk 1.2 and it works flawlessly.
Regards
Dave