Learn Kamailio By Doing Part01 Installation - Omid-Mohajerani/Learn-Kamailio GitHub Wiki

Related Video Tutorial

On Debian 12 By apt package manager

Step 1: Identify the version

Refer to https://deb.kamailio.org/ for getting the repo based on your distro

Step 2: Add Kamailio Repo

wget -O- https://deb.kamailio.org/kamailiodebkey.gpg | sudo apt-key add -
vim /etc/apt/sources.list
deb     http://deb.kamailio.org/kamailio57 bookworm main
deb-src http://deb.kamailio.org/kamailio57 bookworm main

Step 3: Kamailio Installation

apt update
apt -y install kamailio

Check Kamailio Module: To check all kamailio Module use this command

apt search kamailio

For example to install kamailio websocket:

apt install kamailio-websocket-modules

Step 4: Starting the service

systemctl kamailio start

On Rocky Linux 9 from source code

Step 1: Update and Install Prerequisites

dnf install git flex bison make autoconf  openssl-devel libxml2-devel pcre-devel gcc gcc-c++

Step 2: Download source code from github

cd /usr/local/src/
git clone https://github.com/kamailio/kamailio.git

Step 3: Compile the code and install

make all 
make install
make config

Step 4: Starting Kamailio Services

kamailio