[Asterisk-Users] RE: No Files Seen via vmail.cgi

Keith O'Brien keitheobrien at yahoo.com
Thu Dec 2 13:49:16 MST 2004


Ok, I think that I have isolated the source of the problem but am unsure as
to how to fix it as I am a novice when it comes to PERL.

 

I redirected STDERR to STDIO so that I could see any errors kicked out by
the script right on the web page itself.  Here is what it is telling me:

 

[Thu Dec 2 15:13:45 2004] vmail.cgi: Use of uninitialized value in
substitution (s///) at /var/www/cgi-bin/vmail.cgi line 959. 

[Thu Dec 2 15:13:45 2004] vmail.cgi: Use of uninitialized value in
substitution (s///) at /var/www/cgi-bin/vmail.cgi line 962. Set-Cookie:
format=WAV; path=/; expires=Fri, 02-Dec-2005 20:13:45 GMT Date: Thu, 02 Dec
2004 20:13:45 GMT Content-Type: text/html; charset=ISO-8859-1

 

 

Line 959 is "$changefolder =~ s/(\w+)\s+.*$/$1/;"

 

In the following snippet:

 

if (param()) {

        my $folder = param('folder');

        my $changefolder = param('changefolder');

        $changefolder =~ s/(\w+)\s+.*$/$1/;

 

 

Anyone have an idea what variable isn't initialized??

 

  _____  

From: Keith O'Brien [mailto:keitheobrien at yahoo.com] 
Sent: Thursday, December 02, 2004 3:06 PM
To: 'asterisk-users at lists.digium.com'
Subject: No Files Seen via vmail.cgi

 

I am having a problem with the Vmail Web app and was hoping someone has some
advice.   I have been able to install vmail.cgi.   I am able to bring up the
vmail web page and login with out problems.   However, I never see any
vmails listed even when there are vmails present in the directory

[root at linux-home INBOX]# ls -l

total 40
-rwxrwxrwx    1 root     root          255 Dec  2 14:45 msg0000.txt
-rwxrwxrwx    1 root     root        19300 Dec  2 14:45 msg0000.WAV
-rwxrwxrwx    1 root     root          254 Dec  2 14:47 msg0001.txt
-rwxrwxrwx    1 root     root        11630 Dec  2 14:47 msg0001.WAV

[root at linux-home INBOX]# pwd
/var/spool/asterisk/voicemail/default/5001/INBOX

I have seen from previous posts that there were problems with Redhat 9
(which I am running) and file permissions.   I have set all files in the
INBOX (including the INBOX directory itself) to +777 and still the files
don't appear on the webpage.   I also checked that my voicemail context is
set correctly.

Does anyone have an idea as to why this might be happening?  I am running
the 11/24/04 CVS.

Thanks in advance.

 

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


More information about the asterisk-users mailing list