Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
Hoes does ViciDial update the links for recordings?
# ADMIN_update_archive_url.pl - updates the url for the archive server
# in the recording_log table
So my next question is, what's the best method for offloading recordings to a separate server?
#!/usr/bin/perl
#
# AST_CRON_audio_3_ftp.pl
#
# This is a STEP-3 program in the audio archival process
#
# runs every 3 minutes and copies the recording files to an FTP server
#
# put an entry into the cron of of your asterisk machine to run this script
# every 3 minutes or however often you desire
#
# ### recording mixing/compressing/ftping scripts
##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
# 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 --GSM
# 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 --GSM
#
# FLAGS FOR COMPRESSION FILES TO TRANSFER
# --GSM = GSM 6.10 files
# --MP3 = MPEG Layer3 files
# --OGG = OGG Vorbis files
# --WAV = WAV files
# --GSW = GSM 6.10 codec with RIFF headers (.wav extension)
yesMeaning, it will automatically move all processed recordings to the FTP
No. Will move them to /var/spool/asterisk/monitorDONE/FTP. You might empty it via cron job however often you feel safe and suitable.and delete them from the local directory?
mount -t cifs -o -username=user //remoteip/share /var/spool/asterisk/monitorDONE
okli wrote:Hoes does ViciDial update the links for recordings?
/usr/share/astguiclient/ADMIN_update_archive_url.pl :Use --help option to find out command line parameters or just open the file and look at it, it's quite well commented as all files in Vicidial.
- Code: Select all
# ADMIN_update_archive_url.pl - updates the url for the archive server
# in the recording_log table
Amend astguiclient.conf file too with the new location.So my next question is, what's the best method for offloading recordings to a separate server?
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl :
- Code: Select all
#!/usr/bin/perl
#
# AST_CRON_audio_3_ftp.pl
#
# This is a STEP-3 program in the audio archival process
#
# runs every 3 minutes and copies the recording files to an FTP server
#
# put an entry into the cron of of your asterisk machine to run this script
# every 3 minutes or however often you desire
#
# ### recording mixing/compressing/ftping scripts
##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
# 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 --GSM
# 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 --GSM
#
# FLAGS FOR COMPRESSION FILES TO TRANSFER
# --GSM = GSM 6.10 files
# --MP3 = MPEG Layer3 files
# --OGG = OGG Vorbis files
# --WAV = WAV files
# --GSW = GSM 6.10 codec with RIFF headers (.wav extension)yesMeaning, it will automatically move all processed recordings to the FTPNo. Will move them to /var/spool/asterisk/monitorDONE/FTP. You might empty it via cron job however often you feel safe and suitable.and delete them from the local directory?
For our purposes, because disk space became an issue, I've modified the FTP script to delete the files if were successfully put on the FTP by comparing file sizes. Next we use slightly modified AutoIndex PHP to search and browse recordings, voicemails and reports, and play online the recordings with flash based WAV and MP3 players. If anyone is interested I can post more details. Some are here:
http://www.vicidial.org/VICIDIALforum/v ... =autoindex
No, those variables are "default examples" for those wishing to modify the script. The script itself at runtime will acquires these from astguiclient.conf and ignore the defaults.spacejanitor wrote:The machine is already move/mixing and compressing my audio, so it seems only Step3 is not running...
Also, must I modify the variables in AST_CRON_audio_3_ftp.pl also? They appear as the defaults: $VARFTP_host = '10.0.0.4' etc...
williamconley wrote:No, those variables are "default examples" for those wishing to modify the script. The script itself at runtime will acquires these from astguiclient.conf and ignore the defaults.spacejanitor wrote:The machine is already move/mixing and compressing my audio, so it seems only Step3 is not running...
Also, must I modify the variables in AST_CRON_audio_3_ftp.pl also? They appear as the defaults: $VARFTP_host = '10.0.0.4' etc...
But you DO have to verify that the ftp credentials will work from the server sending the files to the server receiving the files in the folder specified. (actually transfer a few files). Until that works, your script cannot succeed.
standard crontab -e entry is already there, just uncomment it.spacejanitor wrote:Ok cool, I verified FTP connects successfully and transferred some files.
So how do I start executing the AST_CRON_audio_3_ftp.pl at regular intervals now? I would only need to transfer the MP3s (ViciBox appears to be processing to MP3 by default), and as I understand it I would need to add a --MP3 flag to the script... but still, where can I make sure that it's being called?
Thanks!
crontab -e
okli wrote:That's wrong place. You were told about "crontab -e", not /etc/crontab
Type in command prompt:This should open the crontab entries in the default editor.
- Code: Select all
crontab -e
dj mondo wrote:k now i have a crazy question about that, i have about 4 months of recordings that i need to backup and move off the dialer. When i first set it up, it worked fine but there is so much that it froze the server i was backing up to, with those number, is there a way to have it do backup for like 2 hours and then stop??
I think not.actiondave wrote:...
Does this: VARHTTP_path => ftp://192.168.1.xxx/vicidial_backups need to be the last line of # backup ftp?
Users browsing this forum: Bing [Bot], Google [Bot] and 100 guests