ViciBox v.3.0 archive-setup script is broken
Posted: Sat Dec 18, 2010 6:59 pm
The included archive-setup is hopelessly broken. If you have already gotten your archive working, then you can skip these instructions. If yours is still broken, then the below actions should help rectify things.
So here is what you do to create an archive:
1) mkdir /home/archive
2) useradd -d /home/archive -s /bin/false <ftp-user>
3) passwd <ftp-user> (Enter the password when it asks)
4) chown -R <ftp-user>:users /home/archive
5) cd /etc/apache2/conf.d
6) rm viciarchive.conf (if it exists)
7) wget http://download.vicihost.com/conf/viciarchive.conf
chkconfig vsftpd on
9) rcvsftpd start
10) chkconfig apache2 on
11) rcapache2 start
The HTTP Path (VARHTTP_path) will be like this:
http://<server>/archive/RECORDINGS
The FTP directory (VARFTP_dir) will be "RECORDINGS"
To move any previously-created recordings and update their archive URLs, you need to do this on the dialers:
1) cd /var/spool/asterisk/monitorDONE/FTP
2) mv * ../MP3
If you are not using MP3 but something else, change line 2 appropriately. The FTP cronjob will pick up these new recordings and automatically re-send them to the archive server and update their URL link in vicidial.
So here is what you do to create an archive:
1) mkdir /home/archive
2) useradd -d /home/archive -s /bin/false <ftp-user>
3) passwd <ftp-user> (Enter the password when it asks)
4) chown -R <ftp-user>:users /home/archive
5) cd /etc/apache2/conf.d
6) rm viciarchive.conf (if it exists)
7) wget http://download.vicihost.com/conf/viciarchive.conf
chkconfig vsftpd on
9) rcvsftpd start
10) chkconfig apache2 on
11) rcapache2 start
The HTTP Path (VARHTTP_path) will be like this:
http://<server>/archive/RECORDINGS
The FTP directory (VARFTP_dir) will be "RECORDINGS"
To move any previously-created recordings and update their archive URLs, you need to do this on the dialers:
1) cd /var/spool/asterisk/monitorDONE/FTP
2) mv * ../MP3
If you are not using MP3 but something else, change line 2 appropriately. The FTP cronjob will pick up these new recordings and automatically re-send them to the archive server and update their URL link in vicidial.