!! This is a work in progress as of Feb 25/2020 !!
Create a standard Debian 10 installation.
I created this on Debian 10.3, NO Gui, only SSH server and standard server utils were selected. GUI, printer server were not selected.
Log into the box as the user. Run the commands in order in the grey boxes
su root
UPDATE BOX
apt-get update && apt-get upgrade
apt-get -y install git-core
We'll download the Kamailio branch
Create a standard Debian 10 installation.
I created this on Debian 10.3, NO Gui, only SSH server and standard server utils were selected. GUI, printer server were not selected.
Log into the box as the user. Run the commands in order in the grey boxes
su root
UPDATE BOX
apt-get update && apt-get upgrade
apt-get -y install git-core
apt-get -y install gcc g++
apt-get -y install flex
apt-get -y install bison
apt-get -y install make autoconf
apt-get -y install pkg-config
apt-get -y install default-libmysqlclient-dev
mkdir -p /usr/local/src/kamailio-5.2
cd /usr/local/src/kamailio-5.2
mkdir -p /usr/local/src/kamailio-5.2
cd /usr/local/src/kamailio-5.2
We'll download the Kamailio branch
(this command is all one line)
git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio
cd kamailio
git checkout -b 5.2 origin/5.2
make cfg
apt -y install mariadb-server mariadb-client
Check the status of MariaDB install
systemctl status mariadb
Setup the initial mariaDB implementation
mysql_secure_installation
mysql_secure_installation
"enter for none password"
Enter your root password you want
SET ROOT PASSWORD = Y
Remove anonymous users= Yedit the following file entry of "include_modules=
Disallow root login remotely = Y
Remove test database and access to it? = Y
Reload privilege tables now = Y
nano -w src/modules.lst
##modify to:##
include_modules= db_mysql
save your changes
make all
export PATH=$PATH:/usr/local/sbin
export PATH=$PATH:/usr/sbin
make install
nano -w /usr/local/etc/kamailio/kamctlrc
set this value by removing leading # symbol###
DBENGINE=MYSQL
save your changes
nano /usr/local/etc/kamailio/kamailio.cfg
Paste these entries in near the top as pictured
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
save your changes
cd /usr/local/src/kamailio-5.2/kamailio
make install-systemd-debian
kamdbctl create
kamdbctl create
(use latin1 for database)
(Y to all questions)
cd /home/
mkdir kamailio
chown kamailio:kamailio kamailio
cd /usr/local/src/kamailio-5.2/kamailio/src
make install-systemd-debian
systemctl enable kamailio
systemctl daemon-reload
systemctl start kamailio
cd /usr/local/src/kamailio-5.2/kamailio/src
make install-systemd-debian
systemctl enable kamailio
systemctl daemon-reload
systemctl start kamailio
KAMAILIO should be running!
This command should give you responses to show that the system is up and running
kamctl
kamctl
The output will look like this: