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.
Before you begin the installation process, you need to make sure that you have the following requirements:
sudo nixos-rebuild switch --upgrade
sudo nix-env -i gnutls jansson openssl \
libsndfile speexdsp opus \
tiff libjpeg-turbo \
libxslt libtool patch
github.com:FreeSWITCH/FreeSWITCH.git
.git clone https://github.com/FreeSWITCH/FreeSWITCH.git
cd FreeSWITCH
./bootstrap.sh -j
./configure -C --prefix=/usr/local/freeswitch
make
sudo make install
sudo /usr/local/freeswitch/bin/freeswitch -nc
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.
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!