Vicibox 3.1.5 FTP issue

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Vicibox 3.1.5 FTP issue

Postby Trying » Thu Jan 20, 2011 8:31 am

Hi Kumba

Just to let you know that 3.1.5 did in fact sort the seconds and recording paths that were not showing out. The only issue left is that the recordings do not transfer to the archive server.

The following error is in root mail:

Can't call method "login" on an undefined value at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 380.




# FTP recording archive connection information
VARFTP_host => 192.168.0.237
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://192.168.0.237/archive/RECORDINGS


I edited line 380 and entered the actual username and password but it makes no difference:

$ftp->login("$VARFTP_cron","$VARFTP_test");


I cannot connect to the server using an FTP client either.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Thu Jan 20, 2011 8:51 am

1) when you edited 380 manually did you leave in the quotes?

2) it sounds more like $ftp isn't declared, show the declaration line for $ftp=???
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Thu Jan 20, 2011 9:00 am

Yes, the quotes were in there also before I entered the username and password.

This is interesting. It seems the values I configured in the dialer for the FTP never actually pulled through to the AST_CRON_audio_3.ftp.pl file:



# Default variables for FTP
$VARFTP_host = '10.0.0.4';
$VARFTP_user = 'cron';
$VARFTP_pass = 'test';
$VARFTP_port = '21';
$VARFTP_dir = 'RECORDINGS';
$VARHTTP_path = 'http://10.0.0.4';
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Thu Jan 20, 2011 9:05 am

that happens at the beginning of the script. it loads the astguiclient.conf file and parses it one line at a time to gather variables.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Thu Jan 20, 2011 9:44 am

I understand. Where do I find the $ftp= line?
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Thu Jan 20, 2011 9:48 am

Code: Select all
nano filename


then "ctrl-w" to "search" then put in anything you want to find.

then learn nano, it's a cool little program massively easier to use than vi or vim
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Thu Jan 20, 2011 9:56 am

Got it! :D

$ftp = Net::FTP->new("$VARFTP_host", Port => $VARFTP_port, Debug => $FTPdb);
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Fri Jan 21, 2011 2:51 am

Any idea what the problem could be guys?
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Fri Jan 21, 2011 10:20 am

find that other post i made a few weeks ago. i bet it's the same issue.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Jan 22, 2011 4:00 am

Must be the same issue. This time I didn't even change the password. Used the standard cron and test but even with an FTP client I cannot get to the archive.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Jan 22, 2011 10:17 am

well, you do kinda have to have ftp operational on the ftp server before you can access it from the ftp client. it helps.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Jan 22, 2011 10:25 am

I am really just giving this information for the benefit of Kumba so that he knows there may still be issues with the FTP setup. Nobody else is complaining so they either don't experience this or they didn't use the cd for their archive.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Jan 22, 2011 10:34 am

fair enough. but you didn't mention whether you did, indeed, use Kumba's installation method for the ftp archive server and what your results were (you discussed the client system fault, but nothing regarding the ftp server ... like whether or not ftp is actually present and operational, if the firewall port is open, nada :)).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Jan 22, 2011 10:49 am

I thought you are the expert and will ask the appropriate questions.... nada :)
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Sat Jan 22, 2011 10:53 am

So thank you for the hint :) Here goes:

Yes, I used the Vicibox cd to archive-setup and didn't change a thing. Left all the defaults as is.

The FTP is in fact up and the firewall port is open.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Wed Jan 26, 2011 1:51 am

Guys, I will really appreciate any help. My 3.1.6 set up is working very well now. The only problem remains the FTP and I still cannot send the recordings to the FTP. I would prefer just to use the standard settings on the FTP as defaulted during installation. As stated above, VSFTPD is on and the recordings are trying to write to it but cannot gain access. I also cannot gain access with a FTP client.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Kumba » Wed Jan 26, 2011 3:32 am

Uhhh.... Do you have the firewall turned on? Is the IP address you are using to connect to listed in the external zone on the archive server?

For fun, you can try this:
/sbin/SuSEfirewall2 open EXT TCP 21
/sbin/SuSEfirewall2 open EXT TCP 30000:30100

It should be noted that this will open up your FTP server to the public internet at large if you have an external IP address on the archive server. Other then that, I have no idea why it's not working. I cannot duplicate your error.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Postby Trying » Wed Jan 26, 2011 3:53 am

You are my hero! :D I turned the firewall off completely and it is now working /sbin/SuSEfirewall2 off

Thank you very much Kumba!
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Wed Jan 26, 2011 5:58 am

Some more weirdness. The recordings are available at http://192.168.0.237/archive/ and not at http://192.168.0.237/archive/RECORDINGS/

I have used the following settings on both the archive server and dialers:

# FTP recording archive connection information
VARFTP_host => 192.168.0.237
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://192.168.0.237/archive/RECORDINGS
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Wed Jan 26, 2011 12:06 pm

it also matters where your apache server believes they are. it controls the URL pointer (http://xx.xx.xx.xx/XXX maps to XXX folder is stored in apache, not ftp)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Wed Jan 26, 2011 12:10 pm

I have manually created the folder archive/RECORDINGS on the FTP server and now the recordings are moving there fine.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Wed Jan 26, 2011 4:24 pm

i can see where that might help
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 246 guests