Difference between revisions of "Kamailio: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
==Siapkan Repository==
 
==Siapkan Repository==
 +
 +
Lakukan
  
 
  apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfb40d3e6508ea4c8
 
  apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfb40d3e6508ea4c8
 +
 +
atau
 +
 +
curl http://deb.kamailio.org/kamailiodebkey.gpg | apt-key add -
  
 
Edit
 
Edit
Line 19: Line 25:
 
==Instalasi==
 
==Instalasi==
  
 +
apt-get -y install kamailio kamailio-extra-modules kamailio-ims-modules \
 +
kamailio-mysql-modules kamailio-nth 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
  
  
==Perbaiki Konfigurasi==
+
==Dengan MySQL==
 +
 
 +
Instalasi
 +
 
 +
sudo apt-get intall mysql-server
 +
 
 +
(asumsi username root, password 123456)
  
 
Edit
 
Edit
  
 
  vi /etc/kamailio/kamctlrc
 
  vi /etc/kamailio/kamctlrc
 +
 +
atau
 +
 +
vi /etc/kamailio/kamctl
  
 
Pastikan
 
Pastikan
  
 +
SIP_DOMAIN=192.168.0.xxx    # IP anda
 
  DBENGINE=MYSQL
 
  DBENGINE=MYSQL
   
+
  DBHOST=localhost
 +
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==
+
Buat Database
  
 
  kamdbctl create
 
  kamdbctl create
  
 +
Restart
 +
 +
service kamailio restart
  
==Restart==
 
  
 +
==Menggunakan TLS==
 +
 +
Edit
 +
 +
/etc/kamailio/kamailio.cfg
 +
 +
Masukan
 +
 +
#!define WITH_TLS
 +
 +
Restart
  
 
  service kamailio restart
 
  service kamailio restart
  
  
==Masukan Nomor==
+
==Manajemen User==
  
 
  kamctl add 123456 123456passwd
 
  kamctl add 123456 123456passwd
 +
 +
kamctl db show subscriber

Revision as of 04:11, 15 November 2016

Siapkan Repository

Lakukan

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfb40d3e6508ea4c8

atau

curl http://deb.kamailio.org/kamailiodebkey.gpg | apt-key add -

Edit

vi /etc/apt/sources.list

dengan

deb http://deb.kamailio.org/kamailio xenial main
deb-src http://deb.kamailio.org/kamailio xenial main


Lakukan

apt-get update

Instalasi

apt-get -y install kamailio kamailio-extra-modules kamailio-ims-modules \
kamailio-mysql-modules kamailio-nth 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


Dengan MySQL

Instalasi

sudo apt-get intall mysql-server

(asumsi username root, password 123456)

Edit

vi /etc/kamailio/kamctlrc

atau

vi /etc/kamailio/kamctl

Pastikan

SIP_DOMAIN=192.168.0.xxx    # IP anda
DBENGINE=MYSQL
DBHOST=localhost
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

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