FreeSWITCH1.10.5源码编译(CentOS 7.10)

钟齐峰的博客 / 2023-05-22 / 原文

一、安装sofia-sip

cd /usr/local/src/freeswitch-1.10.5.-release
git clone https://github.com/freeswitch/sofia-sip.git
cd sofia-sip
./configure
make
make install
ldconfig

二、安装spandsp

cd /usr/local/src/freeswitch-1.10.5.-release
git clone https://github.com/freeswitch/spandsp.git
cd spandsp
./configure
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
ldconfig

三、安装libks

cd /usr/local/src/freeswitch-1.10.5.-release
git clone https://github.com/signalwire/libks.git
cd libks
cmake . 
make
sudo make install  

四、重新编译FreeSWITCH

cd /usr/local/src/freeswitch-1.10.5.-release
./configure --disable-signalwire
make
make install
ln -sf /usr/local/freeswitch/bin/freeswitch /usr/local/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/local/bin/