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
- Open the
http.conf
located in/etc/asterisk/
- Remove the comment marks from the line “
enabled=yes
”. This action will enable Asterisk's built-in micro web server. - Remove the comment marks from the line “
enablestatic=yes
” is you want Asterisk to deliver simple HTML pages, CSS, javascript, etc. - Adjust the “
binaddr
” and “bindport
” settings as appropriate for your accessibility. - 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
- Open the
manager.conf
file located in/etc/asterisk/
- Remove the comment marks from the line “
enabled=yes
” - Remove the comment marks from the line “
webenabled=yes
” - Adjust the “
httptimeout
” setting in order to enable a default timeout for HTTP connections - 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
http.conf
file, and 8088 is the web server portThanks : asterisknow.org
ไม่มีความคิดเห็น:
แสดงความคิดเห็น