วันเสาร์ที่ 15 พฤษภาคม พ.ศ. 2553

install asterisk GUI

สำหรับ ใครที่ ไม่ถนัด CLI หรือเพิ่งหัดเล่น Asterisk ใหม่

วันนี้ผมเลย เอา แบบ GUI มาฝาก ลองดูน่ะครับ

Installation of Asterisk GUI

Requirements

In order to install "Asterisk GUI" you'll need:
Concurrent Versions System (CVS)
asterisk 1.4 - and all modules needed to compile and install asterisk 1.4

/////////////////////////////////////////////////////////////////////////////


How to config Asterisk GUI?

[root@localhost ~]#yum install subversion

[root@localhost src]#svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui

//see our sample output log svn.log


[root@localhost asterisk-gui]# ./configure

[root@localhost asterisk-gui]# make
[root@localhost asterisk-gui]# make install
[root@localhost asterisk-gui]# make samples

>Configuration

ก่อน config ให้ backup ไว้ก่อน
[root@localhost asterisk-gui]#cp -r /etc/asterisk /etc/asterisk.backup

มี 2 file ที่เราจะ config --> [manager.conf] & [http.conf]

[root@localhost asterisk]#vi manager.conf

[1:manager.conf]


displaysystemname = yes

enabled = yes
webenabled = yes
port = 5038

We will have to add a new user to `manager.conf`:

[administrator]
secret = asterisk
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

[root@localhost asterisk]#vi http.conf


[2:http.conf]


enabled=yes

enablestatic=yes
bindaddr=0.0.0.0

After that run `make checkconfig` in your asterisk-gui directory

[root@localhost asterisk-gui]# make checkconfig

--- Checking Asterisk configuration to see if it will support the GUI ---
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: OK
* Checking if HTTP static support is enabled: OK
* Checking if manager is enabled: OK
* Checking if manager over HTTP is enabled: OK
--- Good luck! ---

ถ้า make checkconfig แล้วขึ้นแบบนี้ ก็ OK

สุดท้าย reload สักหน่อยครับ

localhost*CLI> reload

///////////////////////////////////////////////////////////////////////////


ก่อนอื่นเลย ลอง check ดูว่า port80 เปิด อยู่หรือเปล่า
[root@localhost asterisk-gui]# netstat -tanp | grep httpd
tcp 0 0 :::80 :::* LISTEN 24700/httpd

ถ้ายังไม่เปิด ให้ใช้คำสั่ง

[root@localhost asterisk-gui]# /etc/init.d/httpd start
Starting httpd: [ OK ]

แล้วลอง Apache Test Page ดู


///////////////////////////////////////////////////////////////////////////



เข้า Asterisk GUI ด้วย link นี้
http://x.x.x.x:8088/asterisk/static/config/cfgbasic.html


ถ้าเกิดว่า page ไม่ขึ้นให้ config ที่ http.conf

[root@localhost asterisk]# vi http.conf
prefix=asterisk // ใส่ในบรรทัดสุดท้าย

0 ความคิดเห็น:

แสดงความคิดเห็น

สมัครสมาชิก ส่งความคิดเห็น [Atom]

<< หน้าแรก