update the newly created instance
sudo apt update -y
Install rtpengine dependecies
sudo apt-get install debhelper iptables-dev libcurl4-openssl-dev
libpcre3-dev libxmlrpc-core-c3-dev markdown libavfilter-dev
libavformat-dev libavresample-dev libevent-dev libglib2.0-dev libhiredis-dev
libjson-glib-dev libpcap0.8-dev libpcap-dev libssl-dev dkms module-assistant
nfs-common libb-hooks-op-check-perl libexporter-tidy-perl libbencode-perl
libcrypt-rijndael-perl libdigest-hmac-perl libio-socket-inet6-perl libsocket6-perl
cd /usr/local/sr
git clone https://github.com/sipwise/rtpengine.git
cd rtpengine
package strcuture looks like
LICENSE Makefile README.md daemon debian el etc include iptables-extension kernel-module lib perl recording-daemon t tests utils
dpkg-checkbuilddeps
dpkg-buildpackage
once everuthing is build finr and there are .deb file
cd /usr/local/sr
dpkg -i ngcp-rtpengine-daemon_*.deb ngcp-rtpengine-iptables_*.deb ngcp-rtpengine-kernel-dkms_*.deb
Create a conf file from sample
mv /etc/rtpengine/rtpengine.sample.conf /etc/rtpengine/rtpengine.conf
edit it to add your interfaces
start rtpengine suing this conf file
/usr/sbin/rtpengine --foreground --pidfile /var/run/ngcp-rtpengine-daemon.pid --config-file /etc/rtpengine/rtpengine.conf
Issue 1 Unable to locate package libbcg729-dev Solution Either install
https://github.com/BelledonneCommunications/bcg729
or remove the dpeendency by setting env varaible
export DEB_BUILD_PROFILES="pkg.ngcp-rtpengine.nobcg729"
Ref : https://github.com/sipwise/rtpengine#g729-support
Issue2 install: target 'libsystemd-dev' is not a directory Solution
apt install libsystemd-dev
Issue3 dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 12) Inspite of the fact that you have v11 isnatll on buntu18
root@ip-172-31-31-159:/usr/local/src/rtpengine# apt install debhelper-compat
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'debhelper' instead of 'debhelper-compat'
debhelper is already the newest version (11.1.6ubuntu2).
solution First check for the actuall installed version of dbhelper
usr/local/src/rtpengine# dpkg -l | grep debhelp
ii debhelper 11.1.6ubuntu2 all helper programs for debian/rules
ii dh-autoreconf 17 all debhelper add-on to call autoreconf and clean up after the build
Before insatlling the updated version
/usr/local/src/rtpengine# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Now since we have v11 and we need v12 use bionic backports .
apt-get install debhelper -t bionic-backports
ref : sipwise/rtpengine#825