Debian12 源码编译 FreeSWITCH 1.10.12

这是一篇命题作文 :)

第一步,更换 apt 源

复制代码
cat <<"EOF" > /etc/apt/sources.list

deb http://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb http://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
 
EOF

apt update

比 163 快


第二步,安装 git vim gcc 等工具

复制代码
apt install -y --fix-missing git sed m4 bison build-essential pkg-config uuid-dev zlib1g-dev libjpeg-dev libsqlite3-dev libcurl4-openssl-dev \
	libpcre3-dev libspeexdsp-dev libldns-dev libedit-dev libtiff5-dev yasm libopus-dev libsndfile1-dev unzip \
	libshout-dev libmpg123-dev libmp3lame-dev \
	libavformat-dev libswscale-dev liblua5.2-dev lua5.2 cmake libpq-dev ca-certificates python3 python3-dev python3-distutils \
	unixodbc-dev autoconf automake ntpdate libxml2-dev libpq-dev libpq5 sngrep vim sip-tester


cat <<"EOF" > ~/.vimrc

set shiftwidth=4
set softtabstop=4
set tabstop=4
set number
set fileencodings=utf-8
set encoding=utf-8

EOF

编译 libks

复制代码
git clone https://github.com/signalwire/libks.git /usr/src/libks
cd /usr/src/libks
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
make && make install

编译 sofia-sip

复制代码
git clone https://github.com/freeswitch/sofia-sip /usr/src/sofia-sip

cd /usr/src/sofia-sip
./bootstrap.sh
./configure
make && make install

编译 spandsp

复制代码
git clone https://github.com/freeswitch/spandsp /usr/src/spandsp

cd /usr/src/spandsp
# https://github.com/signalwire/freeswitch/issues/2248
git checkout 0d2e6ac
./bootstrap.sh
./configure
make &&  make install

编译 FreeSWITCH

复制代码
git clone https://github.com/signalwire/freeswitch.git -b v1.10.12 /usr/src/freeswitch
cd /usr/src/freeswitch
./bootstrap.sh

sed -i '/mod_signalwire/d' modules.conf
sed -i '/mod_enum/d' modules.conf
sed -i '/mod_opus/d' modules.conf
sed -i 's+#formats/mod_shout+formats/mod_shout+g' modules.conf
sed -i 's+#applications/mod_curl+applications/mod_curl+g' modules.conf
sed -i 's+#xml_int/mod_xml_curl+xml_int/mod_xml_curl+g' modules.conf
#sed -i 's+#languages/mod_python3+languages/mod_python3+g' modules.conf

./configure

make && make install
make cd-sounds-install && make cd-moh-install

echo '/usr/local/lib' >> /etc/ld.so.conf
ldconfig 
ln -s /usr/local/freeswitch/bin/freeswitch /usr/bin
ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin

关于mod_xml_curl 这个模块的介绍,请参考下面的链接:

https://rts.cn/docs/FreeSWITCH-Explained/Modules/mod_xml_curl_1049001


mod_python3 编译似乎有点问题

找了2个工单:

https://github.com/signalwire/freeswitch/issues/1389

https://github.com/signalwire/freeswitch/issues/1479

相关推荐
普中科技2 小时前
【普中STM32F1xx开发攻略--标准库版】-- 第 38 章 RS485 通信实验
stm32·单片机·嵌入式硬件·开发板·通信·rs485·普中科技
xixixi777772 小时前
2026 年 03 月 20 日 AI+通信+安全行业日报(来更新啦)
大数据·人工智能·安全·ai·大模型·通信
嵌入小生0076 小时前
硬件 --- 通信 --- uart/通信方式/电平标准/通信方向
uart·通信·串行通信·并行通信·电平标准·通信方向
xixixi7777710 小时前
5G核心网核心之辨:从服务化架构(SBA)到网络切片的深度实践解析
人工智能·网络安全·信息与通信·通信
问道飞鱼12 小时前
【Tauri框架学习】Tauri 与 React 前端集成:通信机制与交互原理详解
前端·学习·react.js·rust·通信
421!1 天前
ESP32学习笔记之UART
笔记·学习·嵌入式·esp32·通信
物联通信量讯说2 天前
从5G迈向未来通信时代,量讯物联深耕连接基础能力
物联网·5g·信息与通信·iot·通信·6g·量讯物联
xixixi777773 天前
详细梳理移动通信技术从1G到5G(及展望6G)的核心特征、区别以及迭代背后的驱动原因
人工智能·网络安全·信息与通信·通信
liulilittle6 天前
OPENPPP2静态隧道UDP中断问题排查与解决
网络·网络协议·ubuntu·udp·debian·信息与通信·通信
xixixi777776 天前
从图灵测试到大模型:人工智能的演进之路(最近open claw及重看流浪地球有感)
安全·ai·大模型·模型·通信