Hadyai Internet R&D LAB
แหล่งความรู้ => Server => Linux Server System => ข้อความที่เริ่มโดย: admin ที่ 22 มิถุนายน 2008, 00:52:05
-
ก่อนอื่นต้องติดตั้ง subversion ก่อน ด้วยคำสั่ง
apt-get install subversion
เสร็จแล้วก็ติดตั้ง Asterisk GUI
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
cd asterisk-gui
รัน ./configure
make
make install
ทำการ backup config เดิมก่อน
cp -r /etc/asterisk /etc/asterisk.backup
ทำการสร้าง symbolic link `/usr/share/asterisk/static-http' to `/var/lib/asterisk/static-http/'
แก้ config ไฟล์
manager.conf
http.conf
manager.conf
=======================
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0
[administrator]
secret = lriur
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
http.conf
======================
[general]
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
bindport=8088
เสร็จแล้วก็ทำการ reload asterisk ด้วยคำสั่ง
asterisk -rx "reload"
ก็จะสามารถเข้าสู่เวป GUI ของ Asterisk ได้
(http://www.hadyaiinternet.com/images/asteriskgui.jpg)
-
ตัวอย่าง การตั้งค่า TOT netcall สำหรับใช้งานบน Asterisk IP PBX
Username = 0681xxxxxx
Password = password
ขอขอบคุณ คุณ jane จาก AsteriskClub.com (http://www.asteriskclub.com)
===========================
sip.conf
register=>0681xxxxxx:password@203.113.125.82/0681xxxxxx
[0681xxxxxx]
username=0681xxxxxx
type=friend
fromuser=0681xxxxxx
realm=10.10.2.20
secret=password
host=203.113.125.82
outboundproxy=203.113.125.82
fromdomain=203.113.125.82
insecure=very
canreinvite=no
dtmfmode=rfc2833
call-limit=1
allow=g729
allow=alaw
allow=ulaw
nat=no