FTP settings

All installation and configuration problems and questions

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

FTP settings

Postby richardroi » Mon Feb 24, 2014 11:27 am

Support,

I have ftp server and it's working fine. Just wanted to ask if we can set it up as "backup only" meaning when you click the URL recordings it will use the original link eg." http://192.168.150.2/RECORDINGS/GSM/201 ... 55-all.gsm" not the ftp server ip? i just want the ftp server to be a backup storage.


Thank you.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP settings

Postby williamconley » Mon Feb 24, 2014 11:33 am

Probably if you modified the URL to be that of the dialer instead.

But consider this: on the original dialer, all recordings collect in a single folder. Eventually there may be millions of recordings in that single folder. This will actually make it impossible to even list the files in the folder! But when moving the files to FTP, the system creates a folder for each day. This is a much more reasonable storage method.

The recordings on the original servers has always been designed to be temporary. Especially considering that some dialers have ONLY the dialer software and no web services, you begin to understand how temporary the storage of the files on the Dialer is meant to be.

A reasonable solution would be to set up FTP on the dialer and just move the files to a new location on that dialer (yes, it would ftp to itself!).This also allows you to push recordings from any Other Dialer from the same (or another) cluster to the same server.

THEN you can use "ftp2" to push the files to a second ftp server (which no longer alters the URL as it is designed to be a backup)
OR you can simply use rsync to duplicate the entire file structure on another server (which allows for a fairly simple rebuild if something bad happens) without altering the URL links in Vicidial at all.
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: FTP settings

Postby richardroi » Mon Feb 24, 2014 1:20 pm

2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 (this one stays on the server if im not mistaken)
0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=192.168.150.153 --ftp-login=XXXXXX --ftp-pass=XXXXX --ftp-directory=/C:\FTP RECORDINGS --ftp-persistent --ftp-valida$.....
The second one is altering the url but the file is transferring by folder each day.

Can you elaborate this one "A reasonable solution would be to set up FTP on the dialer and just move the files to a new location on that dialer (yes, it would ftp to itself!).This also allows you to push recordings from any Other Dialer from the same (or another) cluster to the same server.

THEN you can use "ftp2" to push the files to a second ftp server (which no longer alters the URL as it is designed to be a backup) " i am getting it but the scripts that is where I am lost.


Thank you.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP settings

Postby williamconley » Tue Feb 25, 2014 12:31 am

If you have a "vicibox" server, Kumba built "ftp" into it. There is a method (check the vicibox.com pdf documentation, and of course posts in these forums) to allow the same server to also be the "Archive" server and accept the FTP transfer of the recordings. This moves them from the asterisk monitorDONE folder into (usually) the /home/ folder inside a subfolder for the ftp user. But still on the same server.

So instead of using the present ftp2 credentials you'll use ftp credentials (which reside in the /etc/astguiclient file) for the normal ftp copy. This will push the recordings right back to the same server. You would then modify the URL to point to the new folder as part of those ftp credentials in astguiclint.conf. The files will then be on the same server, not much of a change but a change nonetheless, just a different folder.

Now the files will exist in /home/xxxxx and also in monitorDONE/FTP (which is where the ftp script will move the files to signify that they have been FTPd to avoid trying to send them again later). The /home/xxxx one will be your permanent location for the links. But that FTP file is handy because you can run the FTP2 script ... and it will take those FTP files and push them to any other FTP server you like ...and then push the local copy to FTP2 to signify they've been moved.

Check your documentation for the ftp2, it should not alter the URL if the url has already been altered by ftp. If I recall.
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: FTP settings

Postby richardroi » Tue Feb 25, 2014 9:43 am

I have this error on my mail when i changed the path on astguiclient.conf.
"Can't call method "login" on an undefined value at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 447"
Details:
My ftp server: 192.168.150.153
My telephony server: 192.168.150.154
astguiclient.conf:
# FTP recording archive connection information
VARFTP_host => 192.168.150.154
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => home
VARHTTP_path => http://192.168.150.154

Cron:
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3
0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=192.168.150.153 --ftp-login=administrator --ftp-pass=atomic --ftp-directory=/C:\FTP RECORDINGS --ftp-persistent --ftp-valida$

should the telephony server has to be archive server too to achieve what i want?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP settings

Postby williamconley » Tue Feb 25, 2014 11:52 am

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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: FTP settings

Postby richardroi » Wed Mar 05, 2014 4:32 pm

2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 (this will ftp to its self)
So i will revert
astguiclient.conf:
# FTP recording archive connection information
VARFTP_host => 192.168.150.154
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => home
VARHTTP_path => http://192.168.150.154
this to its original settings?



(this one (ftp2) will ftp to the archive server) (don't have issue here)
0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=192.168.150.153 --ftp-login=administrator --ftp-pass=atomic --ftp-directory=/C:\FTP RECORDINGS --ftp-persistent --ftp-valida$
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 57 guests