Skip to main content

Ubuntu 16 Xenial

DEPRECATED - FreeSWITCH has not provided binary packages for Ubuntu since 2018, so the PPA's below are severely out of date. DO NOT USE.

About

Ubuntu 16.04 packages are provided by FreeSWITCH™ in a deb repository as of version 1.6. It is strongly recommended to use this repo as additional system libraries are updated as required.

WARNING Please Note only the 16.04 LTS is supported!

WARNING Please Note all Ubuntu installs are experimental at best.

Easy Way

Installing From Ubuntu Packages

Latest Release Branch:

Release package

wget -O - https://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/freeswitch_archive_g0.pub | apt-key add -

echo "deb http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/ xenial main" > /etc/apt/sources.list.d/freeswitch.list

# you may want to populate /etc/freeswitch at this point.
# if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
apt-get update && apt-get install -y freeswitch-meta-all

FreeSWITCH™ is now installed and can be accessed with

FreeSwitch CLI

fs_cli -rRS

Master Branch ("git"):

WARNING not suitable for production

Master Test Package

wget -O - https://files.freeswitch.org/repo/ubuntu-1604/freeswitch-unstable/freeswitch_archive_g0.pub | apt-key add -

echo "deb http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-unstable/ xenial main" > /etc/apt/sources.list.d/freeswitch.list
# you may want to populate /etc/freeswitch at this point.
# if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
apt-get update && apt-get install -y freeswitch-meta-all

FreeSWITCH™ is now installed and can be accessed with

FreeSwitch CLI

fs_cli -rRS

Building Ubuntu packages from master branch

WARNING not suitable for production

The master branch depends on video libraries which are not available as packages in Debian distribution, but are available from FreeSWITCH repository. Thus, you will need internet access to the FreeSWITCH DEB repository.
This build process requires the use of the devscripts and cowbuilder packages. The cowbuilder package allows for creating the packages in a clean chrooted environment.

echo "deb http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-unstable/ xenial main" > /etc/apt/sources.list.d/freeswitch.list

apt-get update
# we need some prepackaged libraries for video support from this repo
wget -O - https://files.freeswitch.org/repo/ubuntu/ubuntu-1604/freeswitch_archive_g0.pub | apt-key add -

#if you have not already installed git, devscripts, and cowbuilder packages please install those now
apt-get install git devscripts cowbuilder

# get the latest master. Use the -b flag to get a specific branch
mkdir /usr/src/freeswitch-debs
cd /usr/src/freeswitch-debs
git clone https://github.com/signalwire/freeswitch.git freeswitch

cd freeswitch
./debian/util.sh build-all -aamd64 -cxenial

# The build may last about an hour, depending on your CPU speed.
# If the build is successful, you will have a bunch of .deb files in /usr/src/freeswitch-debs
# Please see the log files in /usr/src/freeswitch-debs/log/ folder to monitor the build in progress or trouble shoot build issues once the util.sh script has been completed.

Note that when installed from packages FreeSWITCH Packages use an FHS complaint directory layout. Binaries are installed in "/usr/bin/freeswitch", configs in "/etc/freeswitch", etc.