概述
freeswitch是一款简单好用的VOIP开源软交换平台。
因为centos系统期限的原因,尝试在debian的docker上使用fs。
环境
docker engine:Version 24.0.6
debian docker:bullseye 11.8
freeswitch:v1.10.7
Debian准备
目前debian的最新版本是bookworm(12.4),然后是bullseye(11.8)和buster(10.13)。
首先尝试在bookworm(12.4)上编译fs,会有报错(apr_general.h:33:14: error: '__DARWIN_NSIG' undeclared here),没有深究就先放过了。
然后尝试在bullseye(11.8)上编译fs,一次过很顺利。
sudo docker pull debian:bookworm
sudo docker pull debian:bullseye
启动docker容器,版本使用debian:bullseye。
sudo docker run -itd --name debian.bullseye-fs.1.10.7 debian:bullseye
fs编译
进入docker容器。
sudo docker exec -it debian.bullseye-fs.1.10.7 bash
更新系统。
cd /root/
apt-get update
apt-get install git
安装fs依赖。
TOKEN=YOURSIGNALWIRETOKEN
apt-get update && apt-get install -yq gnupg2 wget lsb-release
wget --http-user=signalwire --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
chmod 600 /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
apt-get build-dep freeswitch
下载fs。
git clone https://github.com/signalwire/freeswitch.git -bv1.10.7 freeswitch
cd freeswitch
编译安装。
chmod 775 -R *
apt-get install libks signalwire-client-c
./bootstrap.sh -j
./configure
make
make install
+---------- FreeSWITCH Build Complete ----------+
+ FreeSWITCH has been successfully built. +
+ Install by running: +
+ +
+ make install +
+ +
+ While you're waiting, register for ClueCon! +
+ https://www.cluecon.com +
+ +
+-----------------------------------------------+
总体比较顺利,中间增加了对libks和signalwire-client-c的安装。
总结
centos系统后续的维护问题需要关注。
Debian系统的依赖包大多比较新,比centos要友好。
Debian和rocky的方向需要验证和抉择一下。
空空如常
求真得真
标签:signalwire,apt,bullseye,freeswitch,docker,debian From: https://www.cnblogs.com/qiuzhendezhen/p/17922109.html