How to install FreeSWITCH on Ubuntu Server Latest

FreeSWITCH is a powerful open-source alternative to proprietary communication software for making and receiving phone calls, sending and receiving text messages, and other communication needs. In this tutorial, we will guide you on how to install FreeSWITCH on the latest version of Ubuntu Server.

Prerequisites

Before proceeding with the installation, you will need the following:

Step 1: Update your Ubuntu server

It is always recommended to update your system before installing any new software. To update your Ubuntu Server, run the following command:

$ sudo apt update && sudo apt upgrade -y

Step 2: Installing dependencies

FreeSWITCH requires some dependencies to be installed on your system. Use the following command to install these dependencies:

$ sudo apt install -y autoconf automake devscripts gawk g++ git libjpeg-dev libncurses5-dev libtool make python-dev python-pip python-protobuf python-setuptools python-six python-yaml pkg-config zlib1g-dev ffmpeg

Step 3: Downloading and Installing FreeSWITCH

To download FreeSWITCH, navigate to the official website’s Download page.

Once the page is loaded, click on the “Download” button and copy the URL of the latest version of the package. Alternatively, you can also use the following command to download the latest version:

$ sudo wget https://files.freeswitch.org/releases/freeswitch/freeswitch-1.x.x.tar.gz

Note: Replace the 1.x.x with the latest version number.

Now that it is downloaded, extract the archive by running the following command:

$ tar -xvzf freeswitch-1.x.x.tar.gz

Note: Replace the 1.x.x with the latest version number.

After extracting successfully, navigate to the extracted directory using the following command:

$ cd freeswitch-1.x.x

Note: Replace the 1.x.x with the latest version number.

To configure FreeSWITCH on your system, run the following command:

$ ./configure

Then, build and install FreeSWITCH by running the following commands:

$ make
$ sudo make install

Step 4: FreeSWITCH service configuration

Now, it's time to configure the FreeSWITCH service using the following command:

$ sudo useradd freeswitch -d /usr/local/freeswitch -G sudo
$ sudo chown -R freeswitch:freeswitch /usr/local/freeswitch/*
$ sudo chmod -R 0777 /usr/local/freeswitch/*

Step 5: Enabling and Starting FreeSWITCH services

To enable and start the service, use the following command:

$ sudo systemctl enable freeswitch.service 
$ sudo systemctl start freeswitch.service

To check the status of the FreeSWITCH service, run the following command:

$ sudo systemctl status freeswitch.service

This command will show whether FreeSWITCH is running, stopped or inactive.

Conclusion

That's it! Now you have successfully installed and configured FreeSWITCH on your Ubuntu Server. You can now start using it for making and receiving phone calls, sending and receiving text messages, and other communication needs. Enjoy!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!