Location>code7788 >text

debian10 environment install rtpengine

Popularity:397 ℃/2024-08-17 14:49:57
Operating system: debian 10.13_x64

rtpengine version: 10.5

The latest debian12 environment can be installed directly through apt rtpengine, but the work will sometimes involve debian10 such an old system, today recorded debian10 environment to install rtpengine notes, and provide relevant demo effects and resources to download.

I will expand on the following:

  • debian image resources

  • Source code compilation and installation of rtpengine

  • Install rtpengine with apt

  • Supporting Resources Download

I. debian image resources

If you want to experiment with a virtual machine, you need to install it using a debian10 image, but debian10 is an old system and the official website is not easy to find (but you can still find it):

/cdimage/archive/

Download the mirrors used in this article at:
/cdimage/archive/10.13.0/amd64/

 

II. Source code compilation and installation of rtpengine

1. Getting the source code

GitHub Address:/sipwise/rtpengine

You can download the source package from Releases. The version chosen here is 10.5.3.5 and the file name is:

rtpengine-mr10.5.3.

If GitHub is too slow to download, you can get it from the following sources:

Get it by replying 20240817 after following WeChat (chatting about blogging, you can scan the code at the end of the article).

2. Update apt source

File: /etc/apt/
The content is as follows:

# 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:///debian-security buster/updates main contrib
deb-src http:///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:///debian/ buster-updates main contrib
# deb-src http:///debian/ buster-updates main contrib

deb https:///debian/ buster main contrib non-free
deb https:///debian/ buster-updates main contrib non-free
deb https:///debian/ buster-backports main contrib non-free
deb https:///debian-security/ buster/updates main contrib non-free

deb-src https:///debian/ buster main contrib non-free
deb-src https:///debian/ buster-updates main contrib non-free
deb-src https:///debian/ buster-backports main contrib non-free
deb-src https:///debian-security/ buster/updates main contrib non-free

3、Installation of dependencies and compilation

rtpengine compiles and installs, see the documentation:
/en/latest/compiling_and_installing.html

Use apt to install dependencies:

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

Compile:

make all

Path to the binary file after compilation: daemon/rtpengine

729 encoding is not supported by default, only decoding:

4. Add 729 support

If you need to support 729 encoding, you need to install the bcg729 library. github address:

/BelledonneCommunications/bcg729

Version 1.1.1 is used here, and the download command is as follows:

wget https:///BelledonneCommunications/bcg729/archive/refs/tags/1.1.

If GitHub is too slow to download, you can get it from the following sources:

Get it by replying 20240817 after following WeChat (chatting about blogging, you can scan the code at the end of the article).

Compile and install the bcg729 library:

tar zxvf bcg729-1.1.1.tar.gz
cd bcg729-1.1.1/
cmake .
make
make install

Then recompile rtpengine (requires the ldconfig command):

5. Installation of rtpengine

Here's the deal, make install in the source root is not working:

It can be installed directly using the copy command:

cp daemon/rtpengine /usr/local/bin/

III. Installation using apt

debian10 can also use third party sources to install rtpengine, refer to it:

/rtpengine/

The general idea is described here.

1、Install the third party key

The commands are as follows:
wget https:///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/-rtpengine-archive-
apt-key list

2, add source source

File: /etc/apt//
The content is as follows:

deb  https:///10.5  buster  main

3. Installation of rtpengine

Installation commands:

apt install rtpengine

View Status:

systemctl status rtpengine

IV. Downloading of resources

This article covers the source code and related documentation, which can be obtained from the following sources:

Get it by replying 20240817 after following WeChat (chatting about blogging, you can scan the code at the end of the article).