[Asterisk-Users] vmail.cgi cannot read/delete messages

Uriel Carrasquilla uriel at adelphia.net
Sat May 10 12:52:26 MST 2003


Masakazu:
I fooled around with this mask thing until zorro came home (in /etc/profile
in /root/.bashxxx, in the shell to start asterisk and everywhere).  I did
modified the app_voicemail.c for the ast_writefile from 0700 to 0766.  My
vmail is working but for some reason my 766 is getting changed and I get
rwxr--r-- instead of rwxrw-rw- which is what I expected.  My vmail.cgi
cannot delete or move to other folders even after I went in and changed all
msg*.* to chmod 777.  I can play them and that is enough accomplishment for
1/2 day of work.
Enough work for my Saturday morning but I will get back into the perl
program after I read more about perl this afternoon.  I am getting a funny
message with the regedit s/// substitution in the main routine (bottom of
the page).
Regards,
Uriel

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Masakazu
Nakano
Sent: Saturday, May 10, 2003 8:47 AM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] vmail.cgi cannot read/delete messages



Hi all

I was changed umask in init.asterisk.

and start it, and check it.

.txt is no problem. but voice files aren't effect it..

I found a this line in app_voicemail.c

others[x] = ast_writefile(recordfile, sfmt[x], comment, O_TRUNC, 0, 0700);

is that meaning...the voice file is fixed attribute ?

# Now I'm making vmail.php and vmail for xoops :-)
# and codec converter with ecasound php library

---
Masakazu Nakano.
Dairiten.com - an open source VoIP and Ubiquitus Portal site in Japan.
http://www.dairiten.com/modules/news/
powered by xoops at http://www.xoops.org

On Fri, 9 May 2003 13:39:08 +1000
"Adam Goryachev" <mailinglists at websitemanagers.com.au> wrote:

>You really have two options:
>use umask (which is already supported without changes to asterisk, this
>allows for anyone to set the umask they require).
>
>Alternative is to change asterisk to support config options for owner,
>group, and permissions. This means that we can set the owner/group to that
>required by the webserver rather than just leaving them as world
read/write.
>
>Regards,
>Adam
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list