Free version of LM Tools hosted here to test SIP, HTTP, WebRTC, Proprietary products & more.

Setup Kamailio SIP Proxy

Building and Setting up Kamailio (Version 4.2.0) SIP Proxy Server

You can build Kamailio as SIP proxy. The steps mentioned below were applied to Kamailio-4.2.0 in an Ubuntu 12.04 LTS system. If you are using a different version of Kamailio or different machine/os, corresponding change/action you must consider.

  1. Make sure flex package is installed if not present in machine.
    apt-get install flex
  2. Make sure bison package is installed if not present in machine.
    apt-get install bison
  3. Download the latest source from here. Alternatively pick a right version from here.
  4. Unzip the downloaded zip to a specific folder, say usr/local/sip-kamailio folder.
  5. Change the directory
  6. Build all related modules using below command.
    make proper
    make all
    make install

    This will install Kamailio to default path /etc/kamailio.
    If you want to install Kamailio to a specific path execute below commands.

    make proper
    make prefix=/usr/local/ all
    make prefix=/usr/local/ install

    This will install Kamailio to path /uysr/local/etc/kamailio.
    There are lot of build control information in kamailio-4.2.0/INSTALL file. You can refer and build accordingly.
    Once build is done, you need to configure Kamailio config file. Go to directory where Kamailio is installed. Change the port, ip etc as per your machine details.