-
apt search kam
-
apt install kamailio kamailio-mysql-modules -y
-
apt install mariadb-server -y
-
systemctl enable mariadb
-
systemctl start mariadb
-
Entry kamctlrc nano /etc/kamailio/kamctlrc
-
Uncomment the DBENGINE parameter by removing the pound symbol and make sure the value equals MYSQL. The parameter should look like this afterwards: DBENGINE=MYSQL nano /etc/kamailio/kamctlrc
-
Uncomment and setup the Database Read/Write and Database Read/Only fields. You can just use the default values for right now and you can change them at a later time.
DBRWUSER="kamailio"
DBRWPW="kamailiorw"
DBROUSER="kamailioro"
DBROPW="kamailioro"
-
Create the Kamailio Database Schema /usr/sbin/kamdbctl create
-
Yes in all de question
-
Entry in kamailio.cfg vi /etc/kamailio/kamailio.cfg
-
Add the following after #!KAMAILIO #!define WITH_MYSQL #!define WITH_AUTH
-
Update the DBURL line to match the username and password you set in /etc/kamailio/kamctlrc earlier The line looks like this by default: #!trydef DBURL "mysql://user:password@localhost/kamailio"
Ex: #!trydef DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
-
Start the Kamailio Server service start kamailio
-
Create SIP User Accounts kamctl add [email protected] opensourceisneat
-
configure the 3cx to exten user: 1001 pass: dopensource.com IP:
-
Check register kamctl ul show
Link the tutorial original: https://dopensource.com/2019/05/15/kamailio-v52-debian-quick-install/