树莓派安装FreeSWITCH

1、下载相关资源:

复制代码
# 假设所有资源都下载到/opt/目录下
cd /opt
# 下载FreeSWITCH源码
git clone https://github.com/signalwire/freeswitch
# 下载libks源码
git clone https://github.com/signalwire/libks
# 下载sofia-sip源码
git clone https://github.com/freeswitch/sofia-sip
# 下载spandsp源码
git clone https://github.com/freeswitch/spandsp
# 下载signalwire-c源码
git clone https://github.com/signalwire/signalwire-c

2、安装必要的依赖项:

bash 复制代码
sudo apt install cmake gcc g++ autoconf automake make unixodbc-dev ncurses-dev zlib1g-dev libjpeg-dev libtiff-dev liblua5.1-0-dev libsqlite3-dev libsndfile-dev libavformat-dev libswscale-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libedit-dev libtool libldns-dev libopus-dev libpq-dev

其中有个libuuid需要自己编译安装,安装方式如下:

  • 下载 libuuid 的源码包,可以从以下链接下载:http://nchc.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz。

  • 解压下载的文件:

    复制代码
    tar -xzvf libuuid-1.0.3.tar.gz
  • 进入解压后的目录,并执行配置、编译和安装:

    复制代码
    cd libuuid-1.0.3
    ./configure
    make
    sudo make install
  • 安装完成后,libuuid 库将被安装在 /usr/local/include 和 /usr/local/lib 目录下。

3、安装其他包:

复制代码
cd spandsp/
# 校验安装包版本与freeswitch匹配
git checkout -b finecode20230705 0d2e6ac65e0e8f53d652665a743015a88bf048d4

./bootstrap.sh
./configure
make -j$(nproc) && make install

#添加环境变量
vi /etc/profile
# 文末添加以下内容:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
source /etc/profile

cd ..
cd sofia-sip
./bootstrap.sh
./configure
make -j$(nproc) && make install

cd ..
cd libks
cmake .
make -j$(nproc) && make install

cd ..
cd signalwire-c/
cmake .
make -j$(nproc) && make install

最后做一下更新

复制代码
ldconfig

4、编译安装FreeSWITCH

复制代码
# 编译安装FreeSWITCH
cd freeswitch
./bootstrap.sh -j
./configure
make -j`nproc`
sudo make install
# 安装英文声音资源(可选)
make cd-sounds-install
make cd-moh-install
make uhd-sounds-install
make uhd-moh-install
make hd-sounds-install
make hd-moh-install
make sounds-install
make moh-install
cd ..

5、启动FreeSWITCH服务

复制代码
cd /usr/local/freeswitch
# 前台启动服务
bin/freeswitch
相关推荐
阿白435910 天前
自建 Bitwarden 差点让我丢了所有密码:一次真实的数据灾难与三天重建备份体系
树莓派
Raspberry_Pi_官方账号12 天前
隆重推出《Raspberry Pi 复古游戏指南》
游戏·树莓派·diy·raspberry pi
Raspberry_Pi_官方账号13 天前
重现阿波罗导航计算机
树莓派·raspberry pi·agc
龙腾-虎跃18 天前
基于 SIP 协议的自研电话终端:FreeSWITCH 语音与视频通信实战
android·音视频·freeswitch·sip协议终端·wertc
无垠的广袤22 天前
【ED-CLAWBOX】智能家居枢纽
linux·物联网·docker·智能家居·树莓派·aiot·home assistant
贾宝玉的玉宝贾24 天前
FreeSWITCH 简单图形化界面 70 - 监听/密语的lua脚本
开发语言·junit·lua·voip·freeswitch·sip·ippbx
Raspberry_Pi_官方账号25 天前
Raspberry Pi Desktop 全面升级,现已登陆 PC 和 Mac
服务器·网络·macos·树莓派·raspberry pi·raspberrypios
Raspberry_Pi_官方账号1 个月前
观察、理解与响应:Raspberry Pi 5 上的低功耗 CNN、VLM 和 SLM 工作负载
人工智能·神经网络·cnn·树莓派·raspberrypi
2401_872418781 个月前
树莓派4B迷你便携小电脑制作及应用
电脑·树莓派·diy
龙腾-虎跃1 个月前
VoIP 开发工具包|sngrep、sipphone‑Web、FreeSWITCH 一键打包部署脚本合集
voip·freeswitch·sngrep·呼叫中心·sip开发·动维脚本