特别鸣谢
https://github.com/fusionpbx
安装依赖
apt install -y cmake uuid-dev sqlite3 autoconf automake devscripts g++ git-core libncurses5-dev libtool make libjpeg-dev \
pkg-config flac libgdbm-dev libdb-dev gettext sudo equivs mlocate git dpkg-dev libpq-dev \
liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsqlite3-dev libpcre3-dev \
libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev \
libavformat-dev libswscale-dev libvlc-dev python3-distutils sox libsox-fmt-all \
libspeex-dev libspeexdsp-dev libyaml-dev portaudio19-dev libldns-dev libedit-dev libmemcached-dev
libks安装
# 下载 https://download.csdn.net/download/uuilghiugiu/90884894
tar -zxf libks.tar
cd libks
rm -f CMakeCache.txt
cmake .
make -j $(getconf _NPROCESSORS_ONLN)
make install
sofia-sip安装
# 下载 https://download.csdn.net/download/uuilghiugiu/90884893
unzip sofia-sipv1.13.17.zip
cd sofia-sip-1.13.17
sh autogen.sh
./configure --enable-debug
make -j $(getconf _NPROCESSORS_ONLN)
make install
spandsp安装
# 下载https://download.csdn.net/download/uuilghiugiu/90884895
tar -zxf spandsp.tar
cd spandsp
sh autogen.sh
./configure --enable-debug
make -j $(getconf _NPROCESSORS_ONLN)
make install
ldconfig
freeswitch1.10.11安装
#下载https://download.csdn.net/download/uuilghiugiu/90885058
unzip freeswitch-1.10.11.zip
cd freeswitch-1.10.11
chmod -R 777 ./*#开启模块
#mod_av(多媒体)
#mod_callcenter(呼叫中心)
#mod_cidlookup(来电识别)
#mod_memcache(memcached 缓存支持)
#mod_nibblebill(计费)
#mod_curl(使用 libcurl)
#mod_translate(语言翻译)
#mod_shout(SHOUTcast/Icecast 播放)
#mod_pgsql(PostgreSQL 支持)sed -i ./modules.conf -e s:'#applications/mod_av:formats/mod_av:'
sed -i ./modules.conf -e s:'#applications/mod_callcenter:applications/mod_callcenter:'
sed -i ./modules.conf -e s:'#applications/mod_cidlookup:applications/mod_cidlookup:'
sed -i ./modules.conf -e s:'#applications/mod_memcache:applications/mod_memcache:'
sed -i ./modules.conf -e s:'#applications/mod_nibblebill:applications/mod_nibblebill:'
sed -i ./modules.conf -e s:'#applications/mod_curl:applications/mod_curl:'
sed -i ./modules.conf -e s:'#applications/mod_translate:applications/mod_translate:'
sed -i ./modules.conf -e s:'#formats/mod_shout:formats/mod_shout:'
sed -i ./modules.conf -e s:'#formats/mod_pgsql:formats/mod_pgsql:'#关闭用不上的模块
sed -i ./modules.conf -e s:'applications/mod_signalwire:#applications/mod_signalwire:'
sed -i ./modules.conf -e s:'endpoints/mod_skinny:#endpoints/mod_skinny:'
sed -i ./modules.conf -e s:'endpoints/mod_verto:#endpoints/mod_verto:'./configure -C --enable-portable-binary --disable-dependency-tracking --enable-debug \
--prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--with-openssl --enable-core-pgsql-supportmake -j $(getconf _NPROCESSORS_ONLN)
make install#启动
freeswitch -nonat -ncwait
fs_cli