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

Sean Cook scook at kinex.net
Thu Dec 2 14:08:30 MST 2004


Looks like the script is building a select box (drop down menu)... That
value is the one that is not being set... should build a list like:

"INBOX", "Old", "Work", "Family", "Friends", "Cust1", "Cust2", "Cust3",
"Cust4", "Cust5" 


This for some reason in your setup is not getting passed to the script
in the specific state that you are in....

Sean

On Thu, 2004-12-02 at 15:49 -0500, Keith O'Brien wrote:
> 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.
> 
>  
> 
> 
> _______________________________________________
> 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




More information about the asterisk-users mailing list