How to – Setup an archive server

How to – Setup an archive server

This article is going to go over how to “scratch” install an archive server on CentOS 8, Rocky Linux or Alma Linux. You can pretty much follow it for OpenSuSe as well but there would be some small variations for installing vsftpd.

Step 1 – Install and setup vsftpd

The first thing we have to do is install and properly configure vsftpd.

yum install vsftpd
nano /etc/vsftpd/vsftpd.conf
paste the following at the very bottom:

allow_writeable_chroot=YES
userlist_deny=NO
pasv_min_port=30000
pasv_max_port=31000
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
allow_writeable_chroot=YES
vsftpd.conf config
nano /etc/vsftpd/user_list
(add "cronarchive" to the bottom)

useradd -m -d /home/archive/ cronarchive
passwd cronarchive 
(set the pw u want)

mkdir -p /home/archive
chmod -R 777 /home/archive

Step 2 – Set your archive server in install.pl script

Below is a settings example to put during the install.pl script which can be run by running the following commands. This has to be run on all asterisk servers:

cd /usr/src/astguiclient/trunk/
perl install.pl
archive setup during install.pl script

Step 3 – Turning on the cronjob to send the recordings over to the archive server

Changing this cronjob has to be done on all asterisk servers. You have to remove the # in front of this line by typing “crontab -e” and scrolling until you find it:

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 --run-check
crontab -e

Step 4 – Changing the Apache alias for the recordings

Last thing we need to do is change the alias for the recordings on the archive server as shown below:

nano /etc/httpd/conf.d/record.conf

Alias /RECORDINGS/ "/home/archive/"

<Directory "/home/archive">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    Require all granted
        <files *.mp3>
            Forcetype application/forcedownload
        </files>
</Directory>
Apache alias

Well, thats all there is to it, hopefully this will help some of you with improving your cluster setups and properly setting up an archive server.

-Chris aka carpenox

Carpenox

Recent Posts

Empower Your Business with a White Labeled Dialer Solution from CyburDial

Empower Your Business with a White Labeled Dialer Solution from CyburDial In today's rapidly evolving…

3 weeks ago

Unveiling CyburNumbers: Revolutionizing Your Communication Strategy

Unveiling CyburNumbers: Revolutionizing Your Communication Strategy We're thrilled to announce the upcoming release of CyburNumbers,…

2 months ago

Unraveling MySQLcheck: A Comprehensive Guide to Database Maintenance

Unraveling MySQLcheck: A Comprehensive Guide to Database Maintenance MySQLcheck stands as a formidable tool in…

2 months ago

Introducing CyburNumbers

🎉 Exciting News from CyburDial! 🌟 Introducing CyburNumbers - Your Ultimate Solution for AI-Driven Numbers…

2 months ago

How to – Fix the “You don’t have permission to access /RECORDINGS/MP3/” error within ViciDial

How to - Fix the "You don't have permission to access /RECORDINGS/MP3/" error within ViciDial…

3 months ago

Navigating the Future: Artificial Intelligence in the Call Center Industry

Navigating the Future: Artificial Intelligence in the Call Center Industry In the ever-evolving landscape of…

3 months ago

This website uses cookies.