Difference between revisions of "Instalasi Astersik di Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
Line 20: Line 20:
  
 
  http://ip-address-asterisk-server:8088/asterisk/httpstatus
 
  http://ip-address-asterisk-server:8088/asterisk/httpstatus
 +
  
  
 
==Instalasi Asterisk GUI==
 
==Instalasi Asterisk GUI==
 +
 +
 +
Siapkan Ubuntu untuk meng-compile
 +
 +
# apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++
 +
# apt-get install libssl-dev
 +
  
 
Download asterisk-gui dari SVN
 
Download asterisk-gui dari SVN
Line 29: Line 37:
 
  # cd /usr/local/src/
 
  # cd /usr/local/src/
 
  # svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
 
  # svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
 +
  
 
Semua file dari svn server digium di letakan di asterisk-gui
 
Semua file dari svn server digium di letakan di asterisk-gui
  
 
  # cd /usr/local/src/asterisk-gui
 
  # cd /usr/local/src/asterisk-gui
  # .configure
+
  # ./configure
 
  # make
 
  # make
 +
# make install
 +
# make checkconfig
 +
 +
Edit /etc/asterisk/manager.conf, melalui
 +
 +
# vi /etc/asterisk/manager.conf
 +
 +
pastikan,
 +
 +
enabled = yes
 +
webenabled = yes
 +
 +
Ulangi checkconfig jika di perlukan
 +
 +
# make checkconfig
 +
 +
Copykan ke folder static-http
 +
 +
# cp -Rf /usr/local/src/asterisk-gui/* /usr/share/asterisk/static-http/
 +
 +
 +
==Konfigirasi Manager.conf==
 +
 +
Buat directory untuk masing-masing manager
 +
 +
# mkdir /etc/asterisk/manager.d
 +
 +
Edit /etc/asterisk/manager.d/admin1.conf, melalui
 +
 +
# vi /etc/asterisk/manager.d/admin1.conf
 +
 +
Isi, kira-kira sebagai berikut,
 +
 +
[admin]
 +
secret = mysecret9632
 +
read = system,call,log,verbose,command,agent,config
 +
write = system,call,log,verbose,command,agent,config
 +
 +
 +
==Akses Asterisk GUI==
 +
 +
Sebelum melakukan akses ke Asterisk GUI ada baiknya mengakses ke
 +
 +
http://ip-address-asterisk-server:8088/asterisk/static/config/setup/install.html
 +
 +
Asterisk GUI harusnya dapat di akses di
 +
 +
http://ubuntu:8088/asterisk/static/config/cfgbasic.html
 +
 +
* Before using the GUI, Please visit the install page at
 +
* http://ubuntu:8088/asterisk/static/config/setup/install.html
 +
 +
 +
* Note: If you have bindaddr=127.0.0.1 in /etc/asterisk/http.conf
 +
  you will only be able to visit it from the local machine.
 +
  Example: http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html
 +
 +
* The login and password should be an entry from /etc/asterisk/manager.conf
 +
  which has 'config' permission in read and write.  For example:

Revision as of 10:22, 4 March 2008

Instalasi Asterisk di Ubuntu hanya dengan menjalankan

# apt-get install asterisk


Aktifkan Interface Web

Edit /etc/asterisk/http.conf

# vi /etc/asterisk/http.conf

Pastikan

enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
; bindaddr=127.0.0.1

Akses ke Web Lihat Status HTTP Server Asterisk

http://ip-address-asterisk-server:8088/asterisk/httpstatus


Instalasi Asterisk GUI

Siapkan Ubuntu untuk meng-compile

# apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++
# apt-get install libssl-dev


Download asterisk-gui dari SVN

# apt-get install subversion
# cd /usr/local/src/
# svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui


Semua file dari svn server digium di letakan di asterisk-gui

# cd /usr/local/src/asterisk-gui
# ./configure
# make
# make install
# make checkconfig

Edit /etc/asterisk/manager.conf, melalui

# vi /etc/asterisk/manager.conf

pastikan,

enabled = yes
webenabled = yes

Ulangi checkconfig jika di perlukan

# make checkconfig

Copykan ke folder static-http

# cp -Rf /usr/local/src/asterisk-gui/* /usr/share/asterisk/static-http/


Konfigirasi Manager.conf

Buat directory untuk masing-masing manager

# mkdir /etc/asterisk/manager.d

Edit /etc/asterisk/manager.d/admin1.conf, melalui

# vi /etc/asterisk/manager.d/admin1.conf

Isi, kira-kira sebagai berikut,

[admin]
secret = mysecret9632
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config


Akses Asterisk GUI

Sebelum melakukan akses ke Asterisk GUI ada baiknya mengakses ke

http://ip-address-asterisk-server:8088/asterisk/static/config/setup/install.html

Asterisk GUI harusnya dapat di akses di

http://ubuntu:8088/asterisk/static/config/cfgbasic.html 
* Before using the GUI, Please visit the install page at
* http://ubuntu:8088/asterisk/static/config/setup/install.html 


* Note: If you have bindaddr=127.0.0.1 in /etc/asterisk/http.conf 
  you will only be able to visit it from the local machine. 
  Example: http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html
* The login and password should be an entry from /etc/asterisk/manager.conf
  which has 'config' permission in read and write.  For example: