[asterisk-dev] Permission for files generated by voicemail

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Aug 1 05:16:16 MST 2006


On Tue, Aug 01, 2006 at 09:40:47PM +1000, Jean-Yves Avenard wrote:
> Hi
> 
> There is a problem in Asterisk 1.2.10 (at least). Even though in
> theorie the source code of app_voicemail.c can be modifier to set up
> the proper permission on the directories and file created for the
> voicemail, this code can not work.
> It doesn't take into account that the umask needs to be set properly
> for the argument given to "open" to act as intended. As a result,
> changing the value of VOICEMAIL_FILE_MODE will have no effect in most
> cases.

Right. Set your umask properly. The mode may even be left as 0666/0777.

> 
> I've adapted a patch that I found earlier which also set-up the group
> owner. I've only extracted setting up the permissions as that's all I
> needed and starting asterisk with the right group permission does the
> job just as well.

BTW: I believe that chmod -R / chown -R are more robust than
reimlementing them in C.

> 
> Is there a centralized way to post all those patches? I have a few
> more in the pipeline ...

http://bugs.digium.com/

http://www.digium.com/bugguidelines.html

But see also http://bugs.digium.com/view.php?id=7504 . 

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com



More information about the asterisk-dev mailing list