Kamailio SIP proxy

Package installation

For Debian/Ubuntu, install the package using apt, as demonstrated in Example 11.10, “Installing kamailio on Debian/Ubuntu”. Fedora, RHEL and CentOS users need to manually add the appropriate repository from rpm.kamailio.org and then use yum to install, as demonstrated in Example 11.11, “Install kamailio on Fedora/RHEL/CentOS”.

Example 11.10. Installing kamailio on Debian/Ubuntu

$ sudo apt-get install kamailio
$ sudo addgroup kamailio ssl-cert 

Example 11.11. Install kamailio on Fedora/RHEL/CentOS

$ sudo yum install kamailio
$ sudo addgroup kamailio ssl-cert 

Configuration

The configuration file is /etc/kamailio/kamailio.cfg. The configuration file is written in a scripting language specific to the Kamailio project. It is recommended that you look for and adapt an example configuration file that meets your needs rather than trying to write one from scratch.

After you complete the configuration, restart the daemon as demonstrated in Example 11.7, “Restarting the repro daemon (systemd)”.

Example 11.12. Restarting the kamailio daemon (systemd)

$ sudo systemctl restart kamailio
Restarting kamailio