RTPEngine Installation Steps for Debian

RTPEngine 11.3.1 installation steps

apt-get install aptitude dpkg-dev lsb-release markdown nfs-common netcat netcat-openbsd 
cd /usr/local/src 
git clone --single-branch --branch mr11.3.1 https://github.com/sipwise/rtpengine.git 
export DEB_BUILD_PROFILES="pkg.ngcp-rtpengine.nobcg729" 
cd rtpengine 
apt install dpkg-dev aptitude 
dpkg-buildpackage 
dpkg-checkbuilddeps 
aptitude install debhelper default-libmysqlclient-dev gperf iptables libxtables-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbencode-perl libcrypt-openssl-rsa-perl libcrypt-rijndael-perl libcurl4-openssl-dev libcurl4-gnutls-dev libdigest-crc-perl libdigest-hmac-perl libevent-dev libglib2.0-dev libhiredis-dev libio-multiplex-perl libio-socket-inet6-perl libiptc-dev libjson-glib-dev libnet-interface-perl libpcap-dev libpcre3-dev libsocket6-perl libspandsp-dev libssl-dev libswresample-dev libsystemd-dev libxmlrpc-core-c3-dev 
aptitude install dh-sequence-dkms libjson-perl libmosquitto-dev libopus-dev libtest2-suite-perl libwebsockets-dev python3-websockets markdown 
cpan install Config::Tiny 
ldconfig 
dpkg-buildpackage 
cd .. 
ls | grep -v dbgsym | grep .deb | xargs dpkg -i

Stop and disable Disable RTPengine recording service

systemctl stop rtpengine-recording 
systemctl disable rtpengine-recording 

Start RTPengine Service

systemctl restart rtpengine

RTPEngine service will listening on the following ports by default

tail -f /var/log/syslog -n 1000 | grep rtpengine 
netstat -nlp | grep rtpengine 
tcp        0      0 127.0.0.1:2224          0.0.0.0:*               LISTEN      35778/rtpengine 
tcp        0      0 127.0.0.1:2225          0.0.0.0:*               LISTEN      35778/rtpengine 
tcp6       0      0 ::1:2224                :::*                    LISTEN      35778/rtpengine 
tcp6       0      0 ::1:2225                :::*                    LISTEN      35778/rtpengine 
udp        0      0 127.0.0.1:2223          0.0.0.0:*                           35778/rtpengine 
udp6       0      0 ::1:2223                :::*                                35778/rtpengine

and it will also add iptable module and rule by itself

tail -f /var/log/syslog -n 1000 | grep rtpengine 
netstat -nlp | grep rtpengine 
tcp        0      0 127.0.0.1:2224          0.0.0.0:*               LISTEN      35778/rtpengine 
tcp        0      0 127.0.0.1:2225          0.0.0.0:*               LISTEN      35778/rtpengine 
tcp6       0      0 ::1:2224                :::*                    LISTEN      35778/rtpengine 
tcp6       0      0 ::1:2225                :::*                    LISTEN      35778/rtpengine 
udp        0      0 127.0.0.1:2223          0.0.0.0:*                           35778/rtpengine 
udp6       0      0 ::1:2223                :::*                                35778/rtpengine

Enjoy ;)

2 comments:

  1. hi thanks for this article ,its realy helpful , but i am getting some erors in syslog can you help in sorting them out??
    Sep 16 01:35:28 kam ngcp-rtpengine-iptables-setup[56600]: modprobe: ERROR: could not insert 'xt_RTPENGINE': Function not implemented
    Sep 16 01:35:28 kam ngcp-rtpengine-iptables-setup[56606]: iptables v1.8.7 (nf_tables): unknown option "--id"
    Sep 16 01:35:28 kam ngcp-rtpengine-iptables-setup[56606]: Try `iptables -h' or 'iptables --help' for more information.
    Sep 16 01:35:28 kam ngcp-rtpengine-iptables-setup[56612]: ip6tables v1.8.7 (nf_tables): unknown option "--id"
    Sep 16 01:35:28 kam ngcp-rtpengine-iptables-setup[56612]: Try `ip6tables -h' or 'ip6tables --help' for more information.
    Sep 16 01:35:28 kam rtpengine[56613]: INFO: [crypto] Generating new DTLS certificate
    Sep 16 01:35:28 kam rtpengine[56613]: ERR: [core] FAILED TO CREATE KERNEL TABLE 0 (No such file or directory), KERNEL FORWARDING DISABLED
    Sep 16 01:35:28 kam rtpengine[56613]: INFO: [core] Startup complete, version 11.3.1.11+0~mr11.3.1.11 git-mr11.3.1-09bbe4b2
    Sep 16 01:35:28 kam rtpengine[56613]: INFO: [http] Websocket listener thread running

    ReplyDelete
  2. Whats your rtpengine version ? and OS version ?

    ReplyDelete

SIPp UAC Scenario to send RTP

Please install the latest sipp ( >=3.7.3 ) wget https://github.com/SIPp/sipp/releases/download/v3.7.3/sipp chmor +x sipp mv sipp /usr/bin...