Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
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
# FTP recording archive connection information
VARFTP_host => 192.168.1.180
VARFTP_user => *****
VARFTP_pass => *****
VARFTP_port => 99
VARFTP_dir => RECORDINGS
VARHTTP_path => http://192.168.1.180
perl /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3
mv: cannot stat `/var/spool/asterisk/monitorDONE/MP3/MISDAAD_leysner01_20110324-114920_0115691899-all.mp3': No such file or directory
mv: cannot stat `/var/spool/asterisk/monitorDONE/MP3/PICCOKOU_chotoe01_20110405-130440_0226312408-all.mp3': No such file or directory
mv: cannot stat `/var/spool/asterisk/monitorDONE/MP3/PICCOLO_vera01_20110114-125543_0735480655-all.mp3': No such file or directory
mv: cannot stat `/var/spool/asterisk/monitorDONE/MP3/MISDAAD_vera01_20110317-083531_0135341000-all.mp3': No such file or directory
# 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';
# FTP recording archive connection information
VARFTP_host => 192.168.1.150
VARFTP_user => *****
VARFTP_pass => *****
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://192.168.1.150
vicibox:/usr/share/astguiclient # perl ADMIN_update_archive_url.pl http://192.168.1.180/ http://192.168.1.150/
ADMIN_update_archive_url.pl - updates the url in the recording_log
command-line options:
[--debug] = shows the sql as it is being executed.
[--test] = activates debuging and does not actually
execute the updates.
[--old-server-url] = the old url used to access the recordings.
This is a required argument.
[--new-server-url] = the new url used to access the recordings.
This is a required argument.
# FTP recording archive connection information
VARFTP_host => 192.168.1.150
VARFTP_user => *****
VARFTP_pass => *****
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://192.168.1.150
dspaan wrote:Anyway how do i run this script?
OLD AND EXISTING URL = http://192.168.1.180/DATE/
NEW NEEDED URL = http://192.168.1.150/ (without the date)
What should my statement look like? I tried this:vicibox:/usr/share/astguiclient # perl ADMIN_update_archive_url.pl http://192.168.1.180/ http://192.168.1.150/
ADMIN_update_archive_url.pl - updates the url in the recording_log
command-line options:
[--debug] = shows the sql as it is being executed.
[--test] = activates debuging and does not actually
execute the updates.
[--old-server-url] = the old url used to access the recordings.
This is a required argument.
[--new-server-url] = the new url used to access the recordings.
This is a required argument.
williamconley wrote:read the manual regarding the ftp transfer to the archive server.
this is what it was designed to do.
when it initially "mixes" and stores the recordings locally (a couple minutes after the call ends), they will become available on the vicidial server, and be linked to the lead record (clickable in the web interface for listening).
when the ftp transfer script runs (a few minutes later OR once a day, however you set it up) the link will be modified to link to the new location automaticallyso the recordings will always be accessible before and after the ftp transfer, completely transparent to the user, after you set up ftp transfer.
of course you HAVE read the manual, right? (free on eflo.net, but i highly recommend the paid version, it is very helpful if you have paycheck riding on this equipment, commit it all to memory and you will increase your capabilities a great deal!)
Users browsing this forum: No registered users and 261 guests