- Created bySergey Safarov,last modified byMatthew Valeon2016.05.05
About
This article contain FreeSWITCH™ installation instruction on hosts with CentOS7 or RHEL7 operation system.
Installing from RPM Packages
Stable
FreeSWITCH™ can be installed from packages as follows
yum
install
-y http:
//files
.freeswitch.org
/freeswitch-release-1-6
.noarch.rpm epel-release
-y freeswitch-config-vanilla freeswitch-lang-* freeswitch-sounds-*
systemctl
enable
freeswitch
|
Master
WARNINGnot suitable for production
The master branch of FreeSWITCH™ can be installed from packages as follows
edit /etc/yum.repos.d/freeswitch-testing.repo and update the highlighted lines
[freeswitch-testing]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch
baseurl=http://files.freeswitch.org/yum_unstable/$releasever/$basearch
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-freeswitch$releasever&arch=$basearch
#failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
[freeswitch-testing-debuginfo]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch - Debug
baseurl=http://files.freeswitch.org/yum/testing/$releasever/$basearch/debug
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-debug-freeswitch$releasever&arch=$basearch
#failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
gpgcheck=1
[freeswitch-testing-source]
name=FreeSwitch Packages for Enterprise Linux $releasever - Testing - $basearch - Source
baseurl=http://files.freeswitch.org/yum/testing/$releasever/SRPMS
#mirrorlist=http://mirrors.freeswitch.org/mirrorlist?repo=testing-source-freeswitch$releasever&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
gpgcheck=1
you can then install as follows
Building from source
FreeSWITCH™ can be built from source if you desire but it is not recommended.
-y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel
cd
/usr/local/src
git clone -b v1.6 https:
//freeswitch
.org
/stash/scm/fs/freeswitch
.git
/usr/local/src/freeswitch
.
/bootstrap
.sh -j
/configure
make
make
install
-sounds-
-moh-
install
cd
/usr/local/src
git clone -b v1.6 https:
//freeswitch
.org
/stash/scm/fs/freeswitch
.git
/usr/local/src/freeswitch
.
/bootstrap
.sh -j
/configure
make
make
install
-sounds-
-moh-
install