AsteriskThailand
May 23, 2012, 07:03:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: เกี่ยวกับ asterisk-GUI อะคับ กับ libpri  (Read 1466 times)
tonhor
Newbie
*
Posts: 7


View Profile Email
« on: October 31, 2007, 12:37:49 AM »


 1. libpri มันคือ library ใช่ไหมคับ แล้วมันเกี่ยวกับอะไร แบบว่าเอาไว้ใช่ทำอะไร เพราะว่าผมไม่ต้องลงมันก็ยังใช้ได้นะ

 2. ผมใช้ asterisk 1.2 ก็work ทุกอย่าง แล้วผมก็ลองเปลี่ยนมาใช้ asterisk 1.4.2 มันก็ใช้ได้นะคับ แต่ว่ามันขึ้นว่า

       
Code:
[root@localhost asterisk]# asterisk -vvvvcgr
Asterisk 1.4.2, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.2 currently running on localhost (pid = 3495)
Verbosity is at least 4
    -- Remote UNIX connection
localhost*CLI>

   == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found   

ตรงนี้มันหมายถึงอะไรอะคับ 2file นี้มัน config ผิดหรือว่ายังไง
แต่มันใช้งานได้นะ ใช้ softphone คุยกันได้ปกติ

3. Installation of Asterisk GUI  ผมconfigเส็จแล้ว แล้วก็ลอง checkconfig ดู มัน ok นะ

Code:
[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


 --- Everything looks good ---

 * GUI should be available at http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html

 * Before using the GUI, Please visit the install page at
 * http://127.0.0.1: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:

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

 --- Good luck! ---

  แต่ มันเข้าเวปไม่ได้ (http://x.x.x.x:8088/asterisk/static/config/setup/install.html)

[root@localhost asterisk]# netstat -tanp | grep httpd
tcp        0      0 :::80                       :::*                        LISTEN      9770/httpd

port80 ก็เปิด ลอง test page ก็ได้ ผมก็สงสัยว่าน่าจะเปนที่ 2 file ที่ config คือ

 http.conf
Code:
   [general]
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0      <<<<<<<<<<<<
bindport=8088

  manager.conf
Code:
[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


  ผมจึงอยากถามว่า ตรง bindaddr = x.x.x.x ผมควรใส่ip อะไร 0.0.0.0 หรือ 127.0.0.1 หรือ ใส่ip server ไปเลย
  หรือมี file อื่นที่เกี่ยวข้องอีก

ขอบคุณมากครับ ไม่รุ้ยาวไปเปล่า Grin

 
Logged
tonhor
Newbie
*
Posts: 7


View Profile Email
« Reply #1 on: October 31, 2007, 01:05:06 AM »

 

  ข้อ3 ผมได้แล้ว ^^ ไม่ลบคำถามออกแล้วกันเก็บไว้ ถามเร็วไปหน่อย พึ่งหาเจอจาก link : http://www.asteriskguru.com/board/asterisk-gui-bug-or-error-vt2039.html
  pc-tech
 
Quote
add prefix=asterisk
to the end of /etc/asterisk/http.conf
 
  ดูจากชื่อ link เขียนว่า asterisk-gui-bug-or-error-vt2039 ไม่รู้เปน bug หรือเปล่าที่ตอนแรกไม่ได้ แต่ทำตามที่ คุณ pc-tech แล้วก็ okเลยครับ
 
« Last Edit: October 31, 2007, 05:48:54 PM by tonhor » Logged
Patrickz
Global Moderator
Sr. Member
*****
Posts: 274


View Profile WWW
« Reply #2 on: October 31, 2007, 08:24:47 AM »

Quote
libpri มันคือ library ใช่ไหมคับ แล้วมันเกี่ยวกับอะไร แบบว่าเอาไว้ใช่ทำอะไร เพราะว่าผมไม่ต้องลงมันก็ยังใช้ได้นะ
ครับเป็น library แน่นอน  ชื่อก็บอก Smiley  ส่วน PRI เป็น signals หนึ่ง (BRI ก็เช่นกัน)
libpri ก็จะใช้กับสาย digitals ครับ ซึ่งก็คือสาย E1/T1/J1 นั่นเอง  ถ้าคุณไม่ได้ใช้สายพวกนี้  ก็ไม่จำเป็นต้องใช้ครับ

Quote
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
ข้อ 2  ผมคิดว่าเป็นเรื่องปกตินะครับ มันไม่ได้ฟ้อง error  แค่บอก info เฉยๆ  แต่ปกติ Linux จะไม่แสดงอะไร ถ้าการทำงานทุกอย่างปกติ... แสดงว่าคุณอาจเข้า CLI ด้วย verbose, debug enable mode
ผมว่า Found ไม่เลวร้ายนะครับ   ถ้าฟ้องว่า  Not found  สิครับ ผมว่าจะมีปัญหาแน่  Grin


Quote
bindaddr = 0.0.0.0
ข้อ 3  ปกติเขาจะใช้ 0.0.0.0 กันนะครับ ถ้าเปลี่ยนต้องระวังไปมีผลกับการทำงานอื่นๆ
http://www.voip-info.org/wiki/index.php?page=Asterisk+config+manager.conf
Quote
If bindaddr = 0.0.0.0 then the manager will bind to ALL Ip's on the server.
แล้วเวลาเปลี่ยนค่าใน manager.conf อย่าลืม restart asterisk นะครับ  คำสั่ง reload ไม่ได้ทำงานกับ manager.conf

จากที่คุณTonhor post น่าจะเป็นปัญหาจาก Apache มากกว่า  ขอบคุณครับ ผมก็ได้รู้อะไรใหม่ๆ ด้วยเช่นกัน

« Last Edit: October 31, 2007, 08:55:40 AM by Patrickz » Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
SEM | Asterisk | สถานที่ท่องเที่ยว | สัมมนา SEM