How to Install FreeSWITCH on Fedora Server Latest
In this tutorial, we will guide you through the process of installing FreeSWITCH, which is a popular open-source cross-platform communication platform, on the latest version of Fedora Server.
Prerequisites
Before we begin with the installation, you will need the following:
- A Fedora server with a non-root user with sudo privileges.
- A stable internet connection.
Step 1: Update the System
First, we need to update our system using the following commands:
sudo dnf update -y
sudo dnf upgrade -y
Step 2: Install Dependencies
Next, we need to install the dependencies required by FreeSWITCH. Run the following command:
sudo dnf install -y epel-release gcc-c++ autoconf automake libtool wget ncurses-devel zlib-devel openssl-devel libjpeg-devel sqlite-devel libcurl-devel pcre-devel libedit-devel libuuid-devel libxml2-devel libogg-devel libvorbis-devel speex-devel
Step 3: Download FreeSWITCH
Now, we need to download FreeSWITCH from its official website using the following commands:
cd /usr/src
sudo wget https://files.freeswitch.org/releases/freeswitch/freeswitch-1.10.5.tar.gz
sudo tar -zxvf freeswitch-1.10.5.tar.gz
Step 4: Compile and Install FreeSWITCH
After downloading the source code, we need to compile and install FreeSWITCH. To do this, run the following commands:
cd freeswitch-1.10.5
sudo sh bootstrap.sh -j
sudo ./configure --enable-core-pgsql-support
sudo make
sudo make install
Step 5: Configure Firewall
To use FreeSWITCH, we need to open some ports in the firewall. We will open ports 5060, 5061, and 5080. Run the following command to do this:
sudo firewall-cmd --zone=public --add-port=5060/tcp --permanent
sudo firewall-cmd --zone=public --add-port=5061/tcp --permanent
sudo firewall-cmd --zone=public --add-port=5080/tcp --permanent
sudo firewall-cmd --reload
Step 6: Start FreeSWITCH
To start the FreeSWITCH service, run the following command:
sudo systemctl start freeswitch
Step 7: Verify FreeSWITCH
To verify that FreeSWITCH has been installed and is running properly, run the following command:
sudo fs_cli
This will open the FreeSWITCH console, and you should see a prompt that looks like this:
[email protected]>
Congratulations! You have successfully installed FreeSWITCH on your Fedora server. You can now use it to implement communication features such as voice calls and messaging.