RTP Engine Installation


  1. Remove RTPProxy if it is installed by below command.
    sudo apt-get remove rtpproxy
  2. 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
  1. Then enter into rtpengine directory.
    cd rtpengine
  2. Remove any NGCP dependencies.
    sudo ./debian/flavors/no_ngcp
  3. 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
  1. After installing each dependecies packages build the packages by running below command. This will build RTPengine once again.
    sudo dpkg-buildpackage
  2. 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
  1. Now Installation is completed and need to run the rtp engine.
  2. 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

  1. Now we need to edit kamailio.cfg file /etc/kamilio/kamilio.cfg.
  2. Find and replace rtpprxoy to rtpengine.
  1. Configure your kamailio RTPENGINE_SOCK parameter properly.
    modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:22222")
  1. Save the changes and upload the file.
  2. Stop the Kamailio :- sudo service kamailio stop
  3. Now start the rtpengine using above init script.
    sudo /etc/init.d/ngcp-rtpengine-daemon restart
  4. Start the Kamailio :- sudo service kamailio start
  5. Give 777 permission to the kamailio_fifo file.
    sudo chmod 777 /var/run/kamailio/kamailio_fifo
  1. RTPEngine installed and running successfully. To check this use below command.
    ps -ef | grep ngcp-rtpengine
  2. Done.

Podcast

Michael Patterson sat down with the CEO of Boston Byte, Mustapha Shaikh to discuss the significance and rapid digitization of the healthcar...