Permission denied in /var/www/html/recordings/modules/voicemail.module on line 542

when login under recordings come

Warning: file(/var/spool/asterisk/voicemail/default/10/INBOX/msg0000.txt): failed to open stream: Permission denied in /var/www/html/recordings/modules/voicemail.module on line 542

i have set chmod 777 INBOX ,without success.


from shell try

ls -l
should return something like
total 68
-rw–w---- 1 asterisk asterisk 268 Sep 9 21:11 msg0000.txt
-rwx-w---- 1 asterisk asterisk 49324 Sep 9 21:11 msg0000.wav
-rwx-w---- 1 asterisk asterisk 5066 Sep 9 21:11 msg0000.WAV

if asterisk is not the owner,

chown asterisk msg0000.txt

might help…