Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

ответил 2011-02-24 09:53:47 +0400

arootkov Gravatar arootkov

Вот вывод конфигурационных файлов


cat /etc/asterisk/manager.conf ; ; Asterisk Call Management support ;

; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk#

cat /etc/asterisk/manager.conf ; ; Asterisk Call Management support ;

; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/http.conf ; ; Asterisk Builtin mini-HTTP server ; ; ; Note about Asterisk documentation: ; If Asterisk was installed from a tarball, then the HTML documentation should ; be installed in the static-http/docs directory which is ; (/var/lib/asterisk/static-http/docs) on linux by default. If the Asterisk ; HTTP server is enabled in this file by setting the "enabled", "bindaddr", ; and "bindport" options, then you should be able to view the documentation ; remotely by browsing to: ; http://<server_ip>:<bindport>/static/docs/index.html ; [general] ; ; Whether HTTP/HTTPS interface is enabled or not. Default is no. ; This also affects manager/rawman/mxml access (see manager.conf) ; enabled=yes ; ; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0 ; bindaddr=0.0.0.0 ; ; Port to bind to for HTTP sessions (default is 8088) ; bindport=8088 ; ; Prefix allows you to specify a prefix for all requests ; to the server. The default is blank. If uncommented ; all requests must begin with /asterisk ; ;prefix=asterisk ; ; Whether Asterisk should serve static content from http-static ; Default is no. ; enablestatic=yes ; ; Redirect one URI to another. This is how you would set a ; default page.
; Syntax: redirect=<from here=""> <to there=""> ; For example, if you are using the Asterisk-gui, ; it is convenient to enable the following redirect: ; redirect=/ /asterisk/static/config/index.html ; ; HTTPS support. In addition to enabled=yes, you need to ; explicitly enable ssl, define the port to use, ; and have a certificate somewhere. ; sslenable=yes ; enable ssl - default no. ; sslbindport=4433 ; port to use - default is 8089 ; sslbindaddr=0.0.0.0 ; address to bind to - default is bindaddr. ; ; sslcert=/tmp/foo.pem ; path to the certificate ; ; To produce a certificate you can e.g. use openssl ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem ;

; The postmappings section maps URLs to real paths on the filesystem. If a ; POST is done from within an authenticated manager session to one of the ; configured POST mappings, then any files in the POST will be placed in the ; configured directory. ; [postmappings] ; ; In this example, if the prefix option is set to "asterisk", then using the ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/. ;uploads = /var/lib/asterisk/uploads/ ; ;backups = /var/lib/asterisk/gui_backups

Вот вывод конфигурационных файлов


cat /etc/asterisk/manager.conf ; ; Asterisk Call Management support ;

; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk#

cat /etc/asterisk/manager.conf ; ; Asterisk Call Management support ;

; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/http.conf ; ; Asterisk Builtin mini-HTTP server ; ; ; Note about Asterisk documentation: ; If Asterisk was installed from a tarball, then the HTML documentation should ; be installed in the static-http/docs directory which is ; (/var/lib/asterisk/static-http/docs) on linux by default. If the Asterisk ; HTTP server is enabled in this file by setting the "enabled", "bindaddr", ; and "bindport" options, then you should be able to view the documentation ; remotely by browsing to: ; http://<server_ip>:<bindport>/static/docs/index.html ; [general] ; ; Whether HTTP/HTTPS interface is enabled or not. Default is no. ; This also affects manager/rawman/mxml access (see manager.conf) ; enabled=yes ; ; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0 ; bindaddr=0.0.0.0 ; ; Port to bind to for HTTP sessions (default is 8088) ; bindport=8088 ; ; Prefix allows you to specify a prefix for all requests ; to the server. The default is blank. If uncommented ; all requests must begin with /asterisk ; ;prefix=asterisk prefix=asterisk ; ; Whether Asterisk should serve static content from http-static ; Default is no. ; enablestatic=yes ; ; Redirect one URI to another. This is how you would set a ; default page.
; Syntax: redirect=<from here=""> <to there=""> ; For example, if you are using the Asterisk-gui, ; it is convenient to enable the following redirect: ; redirect=/ /asterisk/static/config/index.html /static/config/index.html ; ; HTTPS support. In addition to enabled=yes, you need to ; explicitly enable ssl, define the port to use, ; and have a certificate somewhere. ; sslenable=yes ; enable ssl - default no. ; sslbindport=4433 ; port to use - default is 8089 ; sslbindaddr=0.0.0.0 ; address to bind to - default is bindaddr. ; ; sslcert=/tmp/foo.pem ; path to the certificate ; ; To produce a certificate you can e.g. use openssl ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem ;

; The postmappings section maps URLs to real paths on the filesystem. If a ; POST is done from within an authenticated manager session to one of the ; configured POST mappings, then any files in the POST will be placed in the ; configured directory. ; [postmappings] ; ; In this example, if the prefix option is set to "asterisk", then using the ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/. ;uploads = /var/lib/asterisk/uploads/ ; ;backups = /var/lib/asterisk/gui_backups

Вот вывод конфигурационных файлов


cat /etc/asterisk/manager.conf

    ;
; Asterisk Call Management support
;

; ; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

bindaddr=0.0.0.0 ; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk#

cat /etc/asterisk/manager.conf ; ; Asterisk Call Management support ;

; ; By default asterisk will listen on localhost only. [general] enabled=yes port = 5038 ;`diisplaysystemname=yes webenabled=yes ;httptimeoutb=60 bindaddr=0.0.0.0

bindaddr=0.0.0.0 ; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;#include "manager.d/*.conf" [admin] secret=admin read=system,call,log,verbose,command,agent,config write= system,call,log,verbose,command,agent,config root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/h h323.conf http.conf
root@ats:/usr/share/asterisk# cat /etc/asterisk/http.conf ; ; Asterisk Builtin mini-HTTP server ; ; ; Note about Asterisk documentation: ; If Asterisk was installed from a tarball, then the HTML documentation should ; be installed in the static-http/docs directory which is ; (/var/lib/asterisk/static-http/docs) on linux by default. If the Asterisk ; HTTP server is enabled in this file by setting the "enabled", "bindaddr", ; and "bindport" options, then you should be able to view the documentation ; remotely by browsing to: ; http://<server_ip>:<bindport>/static/docs/index.html ; [general] ; ; Whether HTTP/HTTPS interface is enabled or not. Default is no. ; This also affects manager/rawman/mxml access (see manager.conf) ; enabled=yes ; ; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0 ; bindaddr=0.0.0.0 ; ; Port to bind to for HTTP sessions (default is 8088) ; bindport=8088 ; ; Prefix allows you to specify a prefix for all requests ; to the server. The default is blank. If uncommented ; all requests must begin with /asterisk ; prefix=asterisk ; ; Whether Asterisk should serve static content from http-static ; Default is no. ; enablestatic=yes ; ; Redirect one URI to another. This is how you would set a ; default page.
; Syntax: redirect=<from here=""> here> <to there=""> there> ; For example, if you are using the Asterisk-gui, ; it is convenient to enable the following redirect: ; redirect=/ /static/config/index.html ; ; HTTPS support. In addition to enabled=yes, you need to ; explicitly enable ssl, define the port to use, ; and have a certificate somewhere. ; sslenable=yes ; enable ssl - default no. ; sslbindport=4433 ; port to use - default is 8089 ; sslbindaddr=0.0.0.0 ; address to bind to - default is bindaddr. ; ; sslcert=/tmp/foo.pem ; path to the certificate ; ; To produce a certificate you can e.g. use openssl ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem ;

; ; The postmappings post_mappings section maps URLs to real paths on the filesystem. If a ; POST is done from within an authenticated manager session to one of the ; configured POST mappings, then any files in the POST will be placed in the ; configured directory. ; [postmappings] [post_mappings] ; ; In this example, if the prefix option is set to "asterisk", then using the ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/. ;uploads = /var/lib/asterisk/uploads/ ; ;backups = /var/lib/asterisk/gui_backups

/var/lib/asterisk/gui_backups

Вот вывод конфигурационных файлов


cat /etc/asterisk/manager.conf

    ;
; Asterisk Call Management support
;

; By default asterisk will listen on localhost only. 
[general]
enabled=yes
port = 5038
;`diisplaysystemname=yes
webenabled=yes
;httptimeoutb=60
bindaddr=0.0.0.0

; No access is allowed by default.
; To set a password, create a file in /etc/asterisk/manager.d
; use creative permission games to allow other serivces to create their own
; files
;#include "manager.d/*.conf" 
[admin]
secret=admin
read=system,call,log,verbose,command,agent,config
write= system,call,log,verbose,command,agent,config

root@ats:/usr/share/asterisk#

cat /etc/asterisk/manager.conf ; ; ; Asterisk Call Management support ; ;

; By default asterisk will listen on localhost only. 
[general]
enabled=yes
port = 5038
;`diisplaysystemname=yes
webenabled=yes
;httptimeoutb=60
bindaddr=0.0.0.0

; No access is allowed by default.
; To set a password, create a file in /etc/asterisk/manager.d
; use creative permission games to allow other serivces to create their own
; files
;#include "manager.d/*.conf" 
[admin]
secret=admin
read=system,call,log,verbose,command,agent,config
write= system,call,log,verbose,command,agent,config
root@ats:/usr/share/asterisk# cat /etc/asterisk/h
h323.conf  http.conf  
root@ats:/usr/share/asterisk# cat /etc/asterisk/h
h323.conf  http.conf  
root@ats:/usr/share/asterisk# cat /etc/asterisk/http.conf 
;
; Asterisk Builtin mini-HTTP server
;
;
; Note about Asterisk documentation:
;   If Asterisk was installed from a tarball, then the HTML documentation should
;   be installed in the static-http/docs directory which is
;   (/var/lib/asterisk/static-http/docs) on linux by default.  If the Asterisk
;   HTTP server is enabled in this file by setting the "enabled", "bindaddr",
;   and "bindport" options, then you should be able to view the documentation
;   remotely by browsing to:
;       http://<server_ip>:<bindport>/static/docs/index.html
;
[general]
;
; Whether HTTP/HTTPS interface is enabled or not.  Default is no.
; This also affects manager/rawman/mxml access (see manager.conf)
;
enabled=yes
;
; Address to bind to, both for HTTP and HTTPS.  Default is 0.0.0.0
;
bindaddr=0.0.0.0
;
; Port to bind to for HTTP sessions (default is 8088)
;
bindport=8088
;
; Prefix allows you to specify a prefix for all requests
; to the server.  The default is blank.  If uncommented
; all requests must begin with /asterisk
;
prefix=asterisk
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic=yes
;
; Redirect one URI to another.  This is how you would set a
; default page.  
;   Syntax: redirect=<from here> <to there>
; For example, if you are using the Asterisk-gui,
; it is convenient to enable the following redirect:
;
redirect=/ /static/config/index.html
;
; HTTPS support. In addition to enabled=yes, you need to
; explicitly enable ssl, define the port to use,
; and have a certificate somewhere.
; sslenable=yes     ; enable ssl - default no.
; sslbindport=4433  ; port to use - default is 8089
; sslbindaddr=0.0.0.0   ; address to bind to - default is bindaddr.
;
; sslcert=/tmp/foo.pem  ; path to the certificate
;
; To produce a certificate you can e.g. use openssl
;   openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem
;

; The post_mappings section maps URLs to real paths on the filesystem.  If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
[post_mappings]
;
; In this example, if the prefix option is set to "asterisk", then using the
; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
;uploads = /var/lib/asterisk/uploads/
;
;backups = /var/lib/asterisk/gui_backups

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.