Install RTPEngine in Debian 12
RTPEngine Server Setup (Recommended OS: Debian 12)
Official reference: https://rtpengine.readthedocs.io/en/latest/index.html
Step 1:
Installing dependencies
apt-get remove --auto-remove nftables apt-get purge nftables apt-get update apt-get install iptables-persistent iptables apt-get install gnupg gnupg2 git mc dkms apt-get install ffmpeg libopus-dev dpkg-dev default-libmysqlclient-dev gperf libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbencode-perl libcrypt-openssl-rsa-perl libcrypt-rijndael-perl libcurl4-openssl-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 libjson-perl libmosquitto-dev libnet-interface-perl libpcap0.8-dev libpcre3-dev libsocket6-perl libspandsp-dev libssl-dev libswresample-dev libsystemd-dev libwebsockets-dev libxmlrpc-core-c3-dev libxtables-dev markdown python3-websockets zlib1g-dev debhelper-compat libbcg729-dev apt-get install linux-headers-$(uname -r)
Step 2:
Install rtpengine
apt-get install rtpengine
Backing up the original files (optional)
mv /etc/rtpengine/rtpengine-recording.conf /etc/rtpengine/rtpengine-recording.conf.orig mv /etc/rtpengine/rtpengine.conf /etc/rtpengine/rtpengine.conf.orig
Step 3:
Edit rtpengine.conf nano /etc/rtpengine/rtpengine.conf
[rtpengine] table = 0 interface = 192.168.1.165 listen-ng = 192.168.1.165:2223 listen-http = localhost:2225 listen-cli = localhost:2224 timeout = 60 silent-timeout = 3600 tos = 184 pidfile = /run/ngcp-rtpengine-daemon.pid port-min = 30000 port-max = 40000 recording-dir = /var/spool/rtpengine recording-method = proc recording-format = raw log-level = 7
RTPengine reference:
https://rtpengine.readthedocs.io/en/latest/rtpengine.html
Step 3:
Edit rtpengine-recording.conf nano /etc/rtpengine/rtpengine-recording.conf
[rtpengine-recording] table = 0 output-storage = file output-format = wav spool-dir = /var/spool/rtpengine output-dir = /var/spool/rtpengine/rtpengine-recording output-mixed = true output-single = true log-level = 7
Recording server reference:
https://rtpengine.readthedocs.io/en/latest/call_recording.html
https://rtpengine.readthedocs.io/en/latest/rtpengine-recording.html
Restarting services
# Making recording directory mkdir /var/spool/rtpengine/rtpengine-recording chown -R rtpengine:rtpengine /var/spool/rtpengine chmod -R 777 /var/spool/rtpengine/rtpengine-recording # Restarting RTP services systemctl restart rtpengine-recording systemctl restart rtpengine systemctl status rtpengine-recording systemctl status rtpengine # To view logs journalctl -f # recording list ls -alh /var/spool/rtpengine/rtpengine-recording
0
Howdy, Stranger!
Categories
- 94 All Categories
- 20 VoIP
- 7 SIP
- 16 asterisk
- 44 Programming
- 1 Nodejs
- 4 javascript
- 19 PHP
- 8 Codeigniter
- 14 database
- 1 UI/UX
- 2 Flutter
- 28 OS
- 26 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal