Installing FreeSWITCH on NixOS

FreeSWITCH is a powerful VoIP platform that can be used for real-time communication applications like voice and video calling, instant messaging, and multimedia conferencing. It can be installed on a variety of operating systems, including NixOS. This tutorial will guide you through the process of installing FreeSWITCH on NixOS.

Requirements

Before you begin the installation process, you need to make sure that you have the following requirements:

  1. A running instance of NixOS
  2. An internet connection
  3. Basic knowledge of the Linux command line

Installation Steps

  1. Open the NixOS terminal and update your system.
sudo nixos-rebuild switch --upgrade
  1. Install some dependencies for building FreeSWITCH.
sudo nix-env -i gnutls jansson openssl \
  libsndfile speexdsp opus \
  tiff libjpeg-turbo \
  libxslt libtool patch
  1. Now clone the FreeSWITCH repository from github.com:FreeSWITCH/FreeSWITCH.git.
git clone https://github.com/FreeSWITCH/FreeSWITCH.git
  1. Change your directory to the newly created FreeSWITCH directory.
cd FreeSWITCH
  1. Compile and build the FreeSWITCH software.
./bootstrap.sh -j
./configure -C --prefix=/usr/local/freeswitch
make
sudo make install
  1. After the installation is complete, you can start the FreeSWITCH daemon.
sudo /usr/local/freeswitch/bin/freeswitch -nc
  1. To verify that everything is working properly, you can connect to FreeSWITCH using a softphone like Jitsi or X-Lite. Use the IP address of the server where FreeSWITCH is installed and the default port number (5060) to connect.

  2. To stop the FreeSWITCH daemon, simply press ctrl+c in the terminal where it is running.

Congratulations, you have successfully installed FreeSWITCH on NixOS!

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!