操作系统 :debian 10.13_x64
rtpengine版本:10.5
最新的debian12环境可通过apt直接安装rtpengine,但工作中有时候还会涉及到debian10这样的老系统,今天记录下debian10环境安装rtpengine的笔记,并提供相关演示效果及资源下载。
我将从以下几个方面进行展开:
-
debian镜像资源
-
源码编译及安装rtpengine
-
使用apt安装rtpengine
- 配套资源下载
一、debian镜像资源
如果要使用虚拟机进行实验,需要使用debian10的镜像进行安装,但debian10是老系统,官网不容易找(但还是能找到的):
https://cdimage.debian.org/cdimage/archive/
本文用到的镜像下载地址:
https://cdimage.debian.org/cdimage/archive/10.13.0/amd64/
二、源码编译及安装rtpengine
1、获取源码
GitHub地址:https://github.com/sipwise/rtpengine
可以在Releases里面下载源码的tar.gz包,这里选的版本是 10.5.3.5 ,文件名称是:
rtpengine-mr10.5.3.5.tar.gz
如果GitHub下载过慢,可从如下渠道获取:
关注微信公众号(聊聊博文,文末可扫码)后回复 20240817 获取。2、更新apt源
文件:/etc/apt/sources.list
内容如下:
# deb cdrom:[Debian GNU/Linux 10.13.0 _Buster_ - Official amd64 DVD Binary-1 20220910-18:04]/ buster contrib main #deb cdrom:[Debian GNU/Linux 10.13.0 _Buster_ - Official amd64 DVD Binary-1 20220910-18:04]/ buster contrib main deb http://security.debian.org/debian-security buster/updates main contrib deb-src http://security.debian.org/debian-security buster/updates main contrib # buster-updates, previously known as 'volatile' # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # # deb http://deb.debian.org/debian/ buster-updates main contrib # deb-src http://deb.debian.org/debian/ buster-updates main contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
3、安装依赖及编译
rtpengine编译和安装,可参考文档:
https://rtpengine.readthedocs.io/en/latest/compiling_and_installing.html
使用apt安装依赖:
apt install gcc g++ autoconf automake make cmake apt install pkg-config libglib2.0-dev libpcre2-dev zlib1g-dev libjson-glib-dev libpcap-dev libswresample-dev apt install libavcodec-dev libspandsp-dev libhiredis-dev libavformat-dev libevent-dev libxmlrpc-c++8-dev apt install gperf libtool libiptc-dev libmariadb-dev-compat libmariadb-dev libcurl4-gnutls-dev libcurl4 apt install libwebsockets-dev libavfilter-dev iptables-dev
编译:
make all
编译完成后,二进制文件路径:daemon/rtpengine
默认不支持729编码,只能解码:
4、添加729支持
如果需要支持 729编码,需要安装bcg729库。Github地址:
https://github.com/BelledonneCommunications/bcg729
这里用的是1.1.1版本,下载命令如下:
wget https://github.com/BelledonneCommunications/bcg729/archive/refs/tags/1.1.1.tar.gz
如果GitHub下载过慢,可从如下渠道获取:
关注微信公众号(聊聊博文,文末可扫码)后回复 20240817 获取。编译并安装bcg729库:
tar zxvf bcg729-1.1.1.tar.gz cd bcg729-1.1.1/ cmake . make make install
然后重新编译 rtpengine(需要执行ldconfig指令):
5、安装rtpengine
这里说下,源码根目录的make install无效:
可以直接使用copy命令进行安装:
cp daemon/rtpengine /usr/local/bin/
三、使用apt安装
debian10也可使用第三方源来安装rtpengine,具体参考:
这里描述下大概思路。
1、安装第三方key
命令如下:wget https://rtpengine.dfx.at/latest/pool/main/r/rtpengine-dfx-repo-keyring/rtpengine-dfx-repo-keyring_1.0_all.deb dpkg -i rtpengine-dfx-repo-keyring_1.0_all.deb apt install gnupg apt-key add /usr/share/keyrings/dfx.at-rtpengine-archive-keyring.gpg apt-key list
2、添加source源
文件:/etc/apt/sources.list.d/rtpengine.list
内容如下:
deb https://rtpengine.dfx.at/10.5 buster main
3、安装rtpengine
安装命令:
apt install rtpengine
查看状态:
systemctl status rtpengine
四、资源下载
本文涉及源码及相关文件,可从如下途径获取:
关注微信公众号(聊聊博文,文末可扫码)后回复 20240817 获取。 标签:rtpengine,dev,https,debian10,deb,main,安装,debian From: https://www.cnblogs.com/MikeZhang/p/18364371/debian10installRtpengine20240817