Difference between revisions of "Kamailio: Instalasi, MariaDB"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with "==Siapkan Repository== Edit sources.list vi /etc/apt/sources.list Pastikan deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse deb http://archive.ubunt...") |
Onnowpurbo (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
vi /etc/apt/sources.list | vi /etc/apt/sources.list | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Update repo | Update repo | ||
Line 52: | Line 39: | ||
− | ==Siapkan Database | + | ==Siapkan Database MariaDB== |
+ | |||
+ | sudo apt -y install mariadb-server | ||
+ | |||
+ | Restart & Enable | ||
+ | |||
+ | sudo systemctl start mariadb | ||
+ | sudo systemctl enable mariadb | ||
+ | |||
+ | Set password root mariadb, kalau masih dalam proses belajar bisa menggunakan 123456 | ||
+ | |||
− | + | mysql -u root -p123456 | |
− | + | ||
− | + | ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; | |
− | + | flush privileges | |
− | + | exit | |
− | |||
Edit | Edit | ||
Line 86: | Line 82: | ||
kamdbctl create | kamdbctl create | ||
+ | |||
+ | Character Set latin1 | ||
Restart | Restart | ||
Line 111: | Line 109: | ||
kamctl db show subscriber | kamctl db show subscriber | ||
− | |||
==Monitoring Kamailio== | ==Monitoring Kamailio== |
Latest revision as of 10:57, 30 November 2023
Siapkan Repository
Edit sources.list
vi /etc/apt/sources.list
Update repo
apt update
Instalasi
apt-get -y install kamailio kamailio-extra-modules kamailio-ims-modules \ kamailio-mysql-modules kamailio-presence-modules \ kamailio-tls-modules kamailio-websocket-modules kamailio-xml-modules \ kamailio-xmpp-modules
Perbaiki Konfigurasi
Edit
vi /etc/default/kamailio
Pastikan
RUN_KAMAILIO=yes USER=root GROUP=root CFGFILE=/etc/kamailio/kamailio.cfg DUMP_CORE=yes
Restart
/etc/init.d/kamailio restart
atau
service kamailio restart
Siapkan Database MariaDB
sudo apt -y install mariadb-server
Restart & Enable
sudo systemctl start mariadb sudo systemctl enable mariadb
Set password root mariadb, kalau masih dalam proses belajar bisa menggunakan 123456
mysql -u root -p123456
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; flush privileges exit
Edit
vi /etc/kamailio/kamctlrc
Pastikan
SIP_DOMAIN=192.168.0.xxx # IPv4 atau SIP_DOMAIN=[2345::xxxx] # IPv6 DBENGINE=MYSQL DBHOST=localhost DBPORT=3306 DBNAME=kamailio DBRWUSER="root" DBRWPW="123456" # password root DBROUSER="root" DBROPW="123456" # password root ALIASES_TYPE="DB" # CTLENGINE="FIFO" VERBOSE=1 PID_FILE=/var/run/kamailio/kamailio.pid
Buat Database
kamdbctl create
Character Set latin1
Restart
service kamailio restart
Menggunakan TLS
Edit
/etc/kamailio/kamailio.cfg
Masukan
#!define WITH_TLS
Restart
service kamailio restart
Manajemen User
kamctl add 123456 123456passwd
kamctl db show subscriber
Monitoring Kamailio
kamctl db show subscriber kamctl monitor kamctl online