- Remove RTPProxy if it is installed by below command.sudo apt-get remove rtpproxy
- Now Clone the RTPengine project from GitHub. To clone the RTPengine use below command.
- sudo apt-get install git
- sudo git clone https://github.com/sipwise/rtpengine.git rtpengine
- Then enter into rtpengine directory.cd rtpengine
- Remove any NGCP dependencies.sudo ./debian/flavors/no_ngcp
- Then we need to run the dpkg-buildpackage command. This will give you list of dependencies. Install each package one by one.
- sudo dpkg-buildpackage
- sudo apt-get install debhelper
- sudo apt-get install iptables-dev
- sudo apt-get install libcurl4-openssl-dev
- sudo apt-get install libglib2.0-dev
- sudo apt-get update
- sudo apt-get install libxmlrpc-core-c3-dev
- sudo apt-get install libhiredis-dev markdown
- sudo apt-get install build-essential:native
- After installing each dependecies packages build the packages by running below command. This will build RTPengine once again.sudo dpkg-buildpackage
- Success! Build Completed, Few .deb files are created in the parent directory(use cd .. ). Now Install those deb files.
- sudo dpkg -i ngcp-rtpengine-daemon_4.1.0.0+0~mr4.1.0.0_amd64.deb
- sudo dpkg -i ngcp-rtpengine-iptables_4.1.0.0+0~mr4.1.0.0_amd64.deb
- sudo dpkg -i ngcp-rtpengine-dbg_4.1.0.0+0~mr4.1.0.0_amd64.deb
- sudo apt-get -f install
- sudo dpkg -i ngcp-rtpengine-kernel-dkms_4.1.0.0+0~mr4.1.0.0_all.deb
- sudo dpkg -i ngcp-rtpengine-kernel-source_4.1.0.0+0~mr4.1.0.0_all.deb
- sudo dpkg -i ngcp-rtpengine_4.1.0.0+0~mr4.1.0.0_all.deb
- Now Installation is completed and need to run the rtp engine.
- We need to edit the /etc/default/ngcp-rtpengine-daemon file. Change the values as per below given configuration.
RUN_RTPENGINE=yes
LISTEN_UDP=12222
LISTEN_NG=22222
LISTEN_CLI=9900
INTERFACES="internal/10.140.3.246!52.20.136.229 external/52.20.136.229"
TIMEOUT=60
SILENT_TIMEOUT=3600
PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
FORK=yes
TABLE=0
PORT_MIN=40000
PORT_MAX=60000
- Now we need to edit kamailio.cfg file /etc/kamilio/kamilio.cfg.
- Find and replace rtpprxoy to rtpengine.
- Configure your kamailio RTPENGINE_SOCK parameter properly.
- Save the changes and upload the file.
- Stop the Kamailio :- sudo service kamailio stop
- Now start the rtpengine using above init script.sudo /etc/init.d/ngcp-rtpengine-daemon restart
- Start the Kamailio :- sudo service kamailio start
- Give 777 permission to the kamailio_fifo file.sudo chmod 777 /var/run/kamailio/kamailio_fifo
modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:22222")
- RTPEngine installed and running successfully. To check this use below command.ps -ef | grep ngcp-rtpengine
- Done.