debian11.3安装freeswitch1.10.7
先安装一下spandsp和sofia-sip
在编译FreeSWITCH之前需要先安装一下spandsp和sofia-sip
apt install -y git autoconf automake libtool libffi-dev openssl libssl-dev build-essential sudo autoconf automake pkg-config curl git wget cmake lsb-release build-essential gcc g++ libcurl4 libcurl4-openssl-dev libtool libtool-bin libssl-dev libtiff-dev libtheora-dev libopus-dev libvorbis-dev
apt install -y libcrypto++
cd /usr/local/src/
1. 安装sofia-sip:
git clone https://github.com/freeswitch/sofia-sip.git
chmod -R o+x /usr/local/src/sofia-sip
cd sofia-sip
./bootstrap.sh -j
./configure
make
make install
ldconfig
2. 安装spandsp:
cd /usr/local/src/
git clone https://github.com/freeswitch/spandsp.git
chmod -R o+x /usr/local/src/spandsp
cd spandsp
./bootstrap.sh -j
./configure
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
ldconfig
安装freeswitch1.10.7
TOKEN=pat_VcjJ8BHwyd3woyRzrmjHhtp8
apt-get update && apt-get install -y gnupg2 wget lsb-release
wget --http-user=lren --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
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
# 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 -nc 启动
或者systemctl start freeswitch #启动
systemctl status freeswitch #查看状态
fs_cli -rRS