[Asterisk-Users] Vmail.cgi - "Hrm, can't seem to open /var/spool/asterisk/voicemail ....

Paul Rodan asterisk at glitch.cc
Mon Jan 10 11:08:08 MST 2005


I believe their voicemail is in the default context, extension 234, which
would be the right path. The issue is most likely permissions, the default
voicemail permissions are that they're owned by root and set to where only
root can read/write to them. The Apache web server that the vmail.cgi script
runs on can not read the files.

 

Check the directories leading up to
/var/spool/asterisk/voicemail/default/234/INBOX/ make sure each are 755. So
that anybody can read those folders. You might want to consider security
before doing this, if it's a shared system you're now allowing others to
hear each others voicemail. If it's a secured/locked down system, then 755
all the directories up to that one. Then set the *.WAV and *.TXT files to
644 so they can be read.  However, if you want to be able to delete emails
via vmail.cgi as well, you have to find a way to allow Apache to delete
these files, chown apache:apache -R /var/spool/asterisk/voicemail will
generally work for any existing voicemails, but not new ones. I have a
cronjob run every 2 minutes that performs the above command, so that
vmail.cgi can work with these files regularly. 

 

My next revision of my Phone server will have Apache and Asterisk running as
a different non-root user, they'll be run as the same user so they can
co-mingle files and such. 

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Frank Kostin
Sent: Monday, January 10, 2005 12:10 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Vmail.cgi - "Hrm,can't seem to open
/var/spool/asterisk/voicemail ....

 

Halas, no

"Kanuri, Seshu (Company IT)" <Seshu.Kanuri at morganstanley.com> wrote: 

  _____  

Hello everybody,
I was trying to install a web interface to my Voice Mail, Vmail.cgi
I can log on it, list messages, but no play with the following error msg;

 

"Hrm, can't seem to open
/var/spool/asterisk/voicemail/default/234/INBOX/msg0001.WAV"

 

Remark: playing the message msg0001.WAV directly OK

Any smart guy up there could help ?
Thanks,

/Snip/ 

 

The URL seems incorrect:

/var/spool/asterisk/voicemail/default/234/INBOX/msg0001.WAV"

 

This probably should be

/var/spool/asterisk/voicemail/234/INBOX/msg0001.WAV"

  _____  

NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

  _____  

Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn
<http://us.rd.yahoo.com/evt=29917/*http:/info.mail.yahoo.com/mail_250>
more.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050110/c1fa4b09/attachment.htm


More information about the asterisk-users mailing list