FTP will not accept the CALL recordings

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

FTP will not accept the CALL recordings

Postby TwistedFister » Sun Nov 29, 2020 1:47 pm

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!
TwistedFister
 
Posts: 79
Joined: Tue Jul 26, 2016 11:50 am

Re: FTP will not accept the CALL recordings

Postby carpenox » Sun Nov 29, 2020 8:51 pm

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
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: FTP will not accept the CALL recordings

Postby TwistedFister » Mon Nov 30, 2020 11:51 am

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.
TwistedFister
 
Posts: 79
Joined: Tue Jul 26, 2016 11:50 am

Re: FTP will not accept the CALL recordings

Postby carpenox » Wed Dec 02, 2020 8:27 am

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
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: AdsBot [Google] and 112 guests