หน้าเว็บ

วันจันทร์ที่ 14 กันยายน พ.ศ. 2552

Asterisk Manager Interface (AMI)

Web Server Setup

Configuring the Asterisk web server to process AJAM requests involves enabling the web server, enabling AMI access, and configuration of your implementation. Use the following procedure to setup the server and enable AJAM access.

Enable the Server

  1. Open the http.conf located in /etc/asterisk/
  2. Remove the comment marks from the line “enabled=yes”. This action will enable Asterisk's built-in micro web server.
  3. Remove the comment marks from the line “enablestatic=yes” is you want Asterisk to deliver simple HTML pages, CSS, javascript, etc.
  4. Adjust the “binaddr” and “bindport” settings as appropriate for your accessibility.
  5. Adjust the “prefix” setting as needed. The prefix is the beginning of any URI on the server. The default is “asterisk”. The rest of the instructions assume the default value.

Enable Manager Access

  1. Open the manager.conf file located in /etc/asterisk/
  2. Remove the comment marks from the line “enabled=yes
  3. Remove the comment marks from the line “webenabled=yes
  4. Adjust the “httptimeout” setting in order to enable a default timeout for HTTP connections
  5. Create a manager username and password.

Restart Asterisk

Once you have completed configuration of the http.conf and manager.conf files, restart Asterisk. Restarting Asterisk will restart the web server with your new configuration. Access to web-based functions will be enabled. You will be able to access these functions by entering specific URLs in a browser's location field. The URL use to access the current Asterisk GUI follows the following format:

http://:8088/asterisk/static/config/cfgbasic.html is the same as the IP you specified in the http.conf file, and 8088 is the web server port

Thanks : asterisknow.org

ไม่มีความคิดเห็น: