First, resolve the dependencies
$ yum install pkgconfig.x86_64 glib2-devel.x86_64 zlib-devel.x86_64 xmlrpc-c-devel.x86_64 libcurl.x86_64 libevent-devel.x86_64 iptables-devel.x86_64 kernel-headers.x86_64 kernel-devel.x86_64 gcc libpcap-devel.x86_64 hiredis-devel.x86_64 json-glib-devel.x86_64
$ sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
$ yum install ffmpeg ffmpeg-devel -y
Download latest rtpengine from here.
$ cd /usr/local/src/
$ wget https://github.com/sipwise/rtpengine/archive/mr4.4.1.1.tar.gz
$ tar -zxvf mr4.4.1.1.tar.gz
$ cd rtpengine-mr4.4.1.1/daemon/
$ make
$ ln -s /usr/local/src/rtpengine-mr4.4.1.1/daemon/rtpengine /usr/bin/
$ cd ../iptables-extension/
$ make
$ cp libxt_RTPENGINE.so /lib64/xtables/
$ cd ../kernel-module/
$ make
$ cp xt_RTPENGINE.ko /lib/modules/4.4.8-20.46.amzn1.x86_64/updates/
$ depmod -a
$ modprobe xt_RTPENGINE
Installation complete.
But if faced the following error then
/usr/src/kernels/4.4.11-23.53.amzn1.x86_64/build: No such file or directory
disable selinux
$ setenforce 0
and do the following steps$ cd /usr/src/kernels/4.4.11-23.53.amzn1.x86_64/
$ unlink build
$ ln -s /usr/src/kernels/4.4.11-23.53.amzn1.x86_64/ build
Start RTPEngine
$ rtpengine -p /var/run/rtpengine.pid -i <Private IP>\!<Public IP> -n 127.0.0.1:22222 -c 127.0.0.1:22223 -m 10000 -M 15000 -E -L 7 --offer-timeout 45 -s 20 -d 3 --tos 184 --no-fallback -b http://127.0.0.1:8000/xmlrpc -x 1
Enjoy ;)
No comments:
Post a Comment