Skip to main content
Skip table of contents

FreeSWITCH installation

Pre Conditions:

Before installing FreeSwitch you must run these commands.

CODE
#sudo apt update
#sudo apt install -y gnupg2 wget lsb-release  [Optional]
#sudo apt upgrade

Make sure that the [deb cdrom: ...] is commented out in the source.list file in /etc/apt directory.

Also make sure that the repositories listed in the "/etc/apt/sources.list" are for the latest release of Debain. (Currently 12.2 'Bookworm')
If you make any changes to the "sources.list" file. Below are the dependencies for Debain Bookworm. If you have a different version please add accordingly.  Make sure to run the update command again.

CODE
#deb http://deb.debian.org/debian/ bookworm main
#deb-src http://deb.debian.org/debian/ bookworm main
#deb http://deb.debian.org/debian/ bookworm-updates main
#deb-src http://deb.debian.org/debian/ bookworm-updates main

Update your system

CODE
#sudo apt update

Go into super user mode to get rid of permission issues.

CODE
#su

For the latest version of Debian such as Book worm we need to follow the following steps as well.

Before we install the freeswitch we need to clone the Sofia-sip and SpandDSP in /usr/src directory. In case git is not installed please install the git by running the 'apt install git' command.

CODE
#git clone https://github.com/freeswitch/sofia-sip
#git clone https://github.com/freeswitch/spandsp

Now add all these dependencies. Some of these dependencies may not be available in the future or the latest versions will be available. Please exclude it from the command and add the latest one.

CODE
#sudo apt-get -y install build-essential subversion automake autoconf wget libtool libtool-bin libncurse5-dev libssl-dev libsndfile1-dev

#sudo apt-get install git libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff5-dev libx11-dev unixodbc-dev python-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev

In /usr/src run the following commands one by one

CODE
./bootstrap.sh
./configure
make install

Go to the signal wire website and login and then make a token for the installation of freeswitch. If you already have a token please proceed.

Now, run the following commands one by one to add Freeswitch repositories to your apt directory

CODE
#$TOKEN=pat_8Errev5k19bRCnmsGdJSxGEs [In case you don't have your token please get one from signalwire website]
#wget --http-user=signalwire --http-password=$TOKEN -O /usr/share/keyrings/signalwire-freeswitch-repo.gpg https://freeswitch.signalwire.com/repo/deb/debian-release/signalwire-freeswitch-repo.gpg
#echo "machine freeswitch.signalwire.com login signalwire password $TOKEN" > /etc/apt/auth.conf
#chmod 600 /etc/apt/auth.conf
#echo "deb [signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] https://freeswitch.signalwire.com/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
#echo "deb-src [signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] https://freeswitch.signalwire.com/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list

Note that "#" is the indicator of a new command. Do not copy and run all commands at the same time.

After these commands run the update command and the install command to install Freeswitch.

CODE
#sudo apt update
#apt-get install -y freeswitch-meta-all

Restart the Freeswitch and configure it.

In case of any problem, complete documentation can be found here for the installation of freeswitch. 










JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.