https://github.com/sipwise/rtpengine
https://sillycodes.com/installing-rtpengine-on-ubuntu-1404/
http://www.opensips.org/Documentation/Tutorials-WebSocket-2-1
http://webs.co.kr/index.php?mid=sourceopen&document_srl=365288
apt-get install git
git clone https://github.com/sipwise/rtpengine.git rtpengine
cd rtpengine
./debian/flavors/no_ngcp
dpkg-buildpackage
apt-get install debhelper
apt-get install iptables-dev
apt-get install libcurl4-openssl-dev
apt-get install libpcre3-dev libxmlrpc-core-c3-dev
apt-get install markdown
apt-get install libavcodec-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libevent-dev libglib2.0-dev libjson-glib-dev libpcap0.8-dev libpcap-dev
dpkg-buildpackage
apt-get install libglib2.0-dev
dpkg -i ngcp-rtpengine-daemon_5.5.0.0+0~mr5.5.0.0_amd64.deb
dpkg -i ngcp-rtpengine-iptables_5.5.0.0+0~mr5.5.0.0_amd64.deb
dpkg -i ngcp-rtpengine-dbg_5.5.0.0+0~mr5.5.0.0_amd64.deb
dpkg -i ngcp-rtpengine_5.5.0.0+0~mr5.5.0.0_all.deb
when you have error
apt-get -f install
dpkg -i ngcp-rtpengine*
edit the
vim /etc/default/ngcp-rtpengine-daemon
RUN_RTPENGINE=yes
LISTEN_TCP=25060
LISTEN_UDP=12222
LISTEN_NG=22222
LISTEN_CLI=9900
INTERFACES=”x.xx.xx.xx”
LOG_LEVEL=6
/usr/sbin/rtpengine --table=0 --interface=10.64.73.31 --interface=2001:db8::4f3:3d \
--listen-udp=127.0.0.1:22222 --listen-ng=127.0.0.1:2223 --tos=184 \
--pidfile=/var/run/rtpengine.pid
/usr/sbin/rtpengine –interface=x.x.x.x –listen-ng=127.0.0.1:22222 -m 30000 -M 35000
/usr/sbin/rtpengine -p /var/run/rtpengine.pid -i eth0/x.x.x.x -n 127.0.0.1:60000 -c 127.0.0.1:60001 -m 50000 -M 55000 -E -L 7
/usr/sbin/rtpengine --table=0 --interface=x.x.x.x --listen-udp=127.0.0.1:22222 --listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/var/run/rtpengine.pid
/usr/sbin/rtpengine --table=0 --interface=x.x.x.x --listen-udp=127.0.0.1:2222 --listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/var/run/rtpengine.pid
-i
: the listening interface for RTP/SRTP-n
: the listening IP and port that is used by OpenSIPS to communicate with the RTPengine (NOTE: the rtpengine module only works with the rtpengine NG protocol, so you must use -n
/--listen-ng
; Using -u
/--listen-udp
or -l
/--listen-tcp
will not work!)-c
: the IP and port of the CLI - this is used to gather statistics for the RTP/SRTP sessions-m, -M
: both take an integer as argument and together define the local port range from which rtpengine will allocate UDP ports for media traffic relay. Default to 30000 and 40000 respectively.-L
: indicates the debugging level