Page 1 of 1

FTP will not accept the CALL recordings

PostPosted: Sun Nov 29, 2020 1:47 pm
by TwistedFister
New Build consisting of Master and Slave database servers, 10 asterisk dialing nodes, 4 webservers, 1Archive, and 1custom reports server. Installation was ISO vicibox 9.0.3 VERSION: 2.14-760a BUILD: 200701-1525 SVN 3261
It is fully functional with the exception of the call recordings transferring via FTP to the archive server. I ran the debug on FTP script that xfers and got this:
Code: Select all
dialer10:~ # perl /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --run-check --debugx

----- DEBUG -----


----- SUPER DEBUG -----


----- CONCURRENCY CHECK -----

MP3 audio files
/var/spool/asterisk/monitorDONE/MP3/5SREVIVE_201127094855_9287502236-all.mp3 46944
/var/spool/asterisk/monitorDONE/MP3/5SREVIVE_201129122105_9287502236-all.mp3 8640
/var/spool/asterisk/monitorDONE/MP3/5SREVIVE_201129122806_9287502236-all.mp3 59328
/var/spool/asterisk/monitorDONE/MP3/5SREVIVE_201129123136_9287502236-all.mp3 10656
/var/spool/asterisk/monitorDONE/MP3/5SREVIVE_201127094855_9287502236-all.mp3 46944


|select recording_id,start_time from recording_log where filename='5SREVIVE_201127094855_9287502236' orde                                                                                          r by recording_id desc LIMIT 1;|
|1|2020-11-27|5SREVIVE_201127094855_9287502236-all.mp3|     ||
Net::FTP>>> Net::FTP(3.10)
Net::FTP>>>   Exporter(5.72)
Net::FTP>>>   Net::Cmd(3.10)
Net::FTP>>>   IO::Socket::SSL(2.068)
Net::FTP>>>     IO::Socket::IP(0.38)
Net::FTP>>>       IO::Socket(1.38)
Net::FTP>>>         IO::Handle(1.36)
Net::FTP=GLOB(0x55c368fce9f0)<<< 220 ViciBox Archive Service
Net::FTP=GLOB(0x55c368fce9f0)>>> USER sameusername as below
Net::FTP=GLOB(0x55c368fce9f0)<<< 331 Please specify the password.
Net::FTP=GLOB(0x55c368fce9f0)>>> PASS ....
Net::FTP=GLOB(0x55c368fce9f0)<<< 530 Login incorrect.
Net::FTP=GLOB(0x55c368fce9f0)>>> CWD RECORDINGS
Net::FTP=GLOB(0x55c368fce9f0)<<< 530 Please login with USER and PASS.
Net::FTP=GLOB(0x55c368fce9f0)>>> MKD 2020-11-27
Net::FTP=GLOB(0x55c368fce9f0)<<< 530 Please login with USER and PASS.
Net::FTP=GLOB(0x55c368fce9f0)>>> CWD 2020-11-27
Net::FTP=GLOB(0x55c368fce9f0)<<< 530 Please login with USER and PASS.
Net::FTP=GLOB(0x55c368fce9f0)>>> TYPE I
Net::FTP=GLOB(0x55c368fce9f0)<<< 530 Please login with USER and PASS.
Cannot set binary transfer, is server connected? at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line                                                                                           540.
You have new mail in /var/mail/root


so then i attempted to connect to the archive server via FTP using the same user and pass as what is in /etc/astguiclient
Code: Select all
dialer10:~ # ftp XXXXXXXXX
Connected to XXXXXXXXX.
220 ViciBox Archive Service
Name (XXXXXXXXXX:root): same username as above
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

So the username and password are correct but when run via FTP script i get wrong user and pass. Is this a permissions issue?

Thanks in advance!

Re: FTP will not accept the CALL recordings

PostPosted: Sun Nov 29, 2020 8:51 pm
by carpenox
do you have vsftpd setup with pam authentication? try adding a user on the archive server and make sure they have the right setup in /etc/passwd

Re: FTP will not accept the CALL recordings

PostPosted: Mon Nov 30, 2020 11:51 am
by TwistedFister
I am able to login using the user name and password that is located in /etc/astguiclient.conf but only when i login ftpXXXXXXX
220 ViciBox Archive Service

but when the FTP audio script runs I get the response listed above.

Re: FTP will not accept the CALL recordings

PostPosted: Wed Dec 02, 2020 8:27 am
by carpenox
0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=yourserver.ip --ftp-login=vicidial_back_up@yourdomain.com --ftp-pass=passhere --ftp-directory=/directoryhere