Forked from altanai/RTPEngine_installattion.md
Last active
February 13, 2023 19:54
-
-
Save codeasashu/c88ef9c948d6c590e9c8b56099166a9e to your computer and use it in GitHub Desktop.
Revisions
-
codeasashu revised this gist
Feb 13, 2023 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,16 +3,16 @@ update the newly created instance sudo apt update -y ``` Install rtpengine dependecies ```sh 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 ``` ## Download RTPengine source ccode ```sh cd /usr/local/sr git clone https://github.com/sipwise/rtpengine.git cd rtpengine -
altanai created this gist
May 22, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,99 @@ 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 ``` ## Download RTPengine source ccode ``` 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 ``` ## Install the debain packages ``` 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 ``` ## Issues **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** ```bash 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 : https://github.com/sipwise/rtpengine/issues/825