Here is the bit of text for the WIKI that I think will solve the issue:
To make this work well, you should modify file.c and app_voicemail.c to write out the files with the same owner and group ID as the directories they are in.
You can do that after figuring out what the owner and group of the directory is or just chown the files to root:apache and chmod 660.
It can be a pain setting this up so it doesn’t get screwed up. You have to make sure that the directories created for new mailboxes are 770 as well as 660 for any files, modifying the copy and file writing files in file.c and where they are called(the mode parameter) in app_voicemail.c.
Too bad the Asterisk devs don’t have this built in or a configure option when compiling. Checking your voicemail from the web is very convenient.
My questions are:
Do I have to recompile Asterisk to get this to work?
Which files/folders does he want to me CHMOD/CHOWN
In the 3rd paragraph, does he want me to chmod it to 660 or 770?
How do you chown something to root:apache, aren’t they 2 different users?
Is there a more elegant solution? I am not keen on the idea of just chmod’ing files until eventually it works. This will be going into a production enviorment and I need the best/most elegant solution.