2002-09-02 15:20:28 +00:00
|
|
|
;
|
2005-03-17 15:56:55 +00:00
|
|
|
; AMI - The Asterisk Manager Interface
|
2009-05-28 14:39:21 +00:00
|
|
|
;
|
2005-10-04 22:51:59 +00:00
|
|
|
; Third party application call management support and PBX event supervision
|
2005-03-17 15:56:55 +00:00
|
|
|
;
|
2005-10-04 22:51:59 +00:00
|
|
|
; This configuration file is read every time someone logs in
|
2005-03-17 15:56:55 +00:00
|
|
|
;
|
2006-11-04 01:20:38 +00:00
|
|
|
; Use the "manager show commands" at the CLI to list available manager commands
|
2005-10-04 22:51:59 +00:00
|
|
|
; and their authorization levels.
|
2005-03-17 15:56:55 +00:00
|
|
|
;
|
2006-10-04 16:48:07 +00:00
|
|
|
; "manager show command <command>" will show a help text.
|
2005-03-17 15:56:55 +00:00
|
|
|
;
|
2005-10-04 22:51:59 +00:00
|
|
|
; ---------------------------- SECURITY NOTE -------------------------------
|
|
|
|
; Note that you should not enable the AMI on a public IP address. If needed,
|
|
|
|
; block this TCP port with iptables (or another FW software) and reach it
|
2009-05-28 14:39:21 +00:00
|
|
|
; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
|
2006-11-04 01:20:38 +00:00
|
|
|
; interface available over http/https if Asterisk's http server is enabled in
|
2006-04-01 08:49:54 +00:00
|
|
|
; http.conf and if both "enabled" and "webenabled" are set to yes in
|
2009-05-28 14:39:21 +00:00
|
|
|
; this file. Both default to no. httptimeout provides the maximum
|
|
|
|
; timeout in seconds before a web based session is discarded. The
|
2006-04-01 08:49:54 +00:00
|
|
|
; default is 60 seconds.
|
2002-09-02 15:20:28 +00:00
|
|
|
;
|
|
|
|
[general]
|
|
|
|
enabled = no
|
2006-04-01 08:49:54 +00:00
|
|
|
;webenabled = yes
|
2002-09-02 15:20:28 +00:00
|
|
|
port = 5038
|
2007-05-04 20:11:03 +00:00
|
|
|
|
2006-04-01 08:49:54 +00:00
|
|
|
;httptimeout = 60
|
2007-05-04 20:11:03 +00:00
|
|
|
; a) httptimeout sets the Max-Age of the http cookie
|
2009-05-28 14:39:21 +00:00
|
|
|
; b) httptimeout is the amount of time the webserver waits
|
2007-05-04 20:11:03 +00:00
|
|
|
; on a action=waitevent request (actually its httptimeout-10)
|
2009-05-28 14:39:21 +00:00
|
|
|
; c) httptimeout is also the amount of time the webserver keeps
|
2007-05-04 20:11:03 +00:00
|
|
|
; a http session alive after completing a successful action
|
|
|
|
|
2002-09-02 15:20:28 +00:00
|
|
|
bindaddr = 0.0.0.0
|
2006-12-07 16:42:29 +00:00
|
|
|
|
|
|
|
; Parameters that control AMI over TLS. ("enabled" must be set too).
|
|
|
|
; You can open a connection to this socket with e.g.
|
|
|
|
;
|
|
|
|
; openssl s_client -connect my_host:5039
|
|
|
|
;
|
2009-04-29 14:39:48 +00:00
|
|
|
;tlsenable=no ; set to YES to enable it
|
|
|
|
;tlsbindport=5039 ; the port to bind to
|
|
|
|
;tlsbindaddr=0.0.0.0 ; address to bind to, default to bindaddr
|
|
|
|
;tlscertfile=/tmp/asterisk.pem ; path to the certificate.
|
|
|
|
;tlsprivatekey=/tmp/private.pem ; path to the private key, if no private given,
|
2009-05-28 14:39:21 +00:00
|
|
|
; if no tlsprivatekey is given, default is to search
|
|
|
|
; tlscertfile for private key.
|
2009-04-29 14:39:48 +00:00
|
|
|
;tlscipher=<cipher string> ; string specifying which SSL ciphers to use or not use
|
2007-05-17 17:12:23 +00:00
|
|
|
;
|
|
|
|
;allowmultiplelogin = yes ; IF set to no, rejects manager logins that are already in use.
|
|
|
|
; ; The default is yes.
|
|
|
|
;
|
2005-01-05 06:24:59 +00:00
|
|
|
;displayconnects = yes
|
2006-01-03 22:07:12 +00:00
|
|
|
;
|
|
|
|
; Add a Unix epoch timestamp to events (not action responses)
|
|
|
|
;
|
|
|
|
;timestampevents = yes
|
2002-09-02 15:20:28 +00:00
|
|
|
|
2009-11-13 20:42:03 +00:00
|
|
|
;
|
|
|
|
; Display certain channel variables every time a channel-oriented
|
|
|
|
; event is emitted:
|
|
|
|
;
|
|
|
|
;channelvars = var1,var2,var3
|
|
|
|
|
2006-11-04 01:20:38 +00:00
|
|
|
; debug = on ; enable some debugging info in AMI messages (default off).
|
2009-05-28 14:39:21 +00:00
|
|
|
; Also accessible through the "manager debug" CLI command.
|
2002-09-02 15:20:28 +00:00
|
|
|
;[mark]
|
|
|
|
;secret = mysecret
|
2003-05-05 06:14:25 +00:00
|
|
|
;deny=0.0.0.0/0.0.0.0
|
|
|
|
;permit=209.16.236.73/255.255.255.0
|
2005-03-17 15:56:55 +00:00
|
|
|
;
|
2005-10-04 22:25:15 +00:00
|
|
|
; If the device connected via this user accepts input slowly,
|
|
|
|
; the timeout for writes to it can be increased to keep it
|
|
|
|
; from being disconnected (value is in milliseconds)
|
|
|
|
;
|
|
|
|
; writetimeout = 100
|
|
|
|
;
|
2007-06-11 22:07:50 +00:00
|
|
|
;displayconnects = yes ; Display on CLI user login/logoff
|
|
|
|
;
|
2009-05-28 14:39:21 +00:00
|
|
|
; Authorization for various classes
|
2008-01-10 00:12:35 +00:00
|
|
|
;
|
|
|
|
; Read authorization permits you to receive asynchronous events, in general.
|
|
|
|
; Write authorization permits you to send commands and get back responses. The
|
|
|
|
; following classes exist:
|
|
|
|
;
|
|
|
|
; system - General information about the system and ability to run system
|
|
|
|
; management commands, such as Shutdown, Restart, and Reload.
|
|
|
|
; call - Information about channels and ability to set information in a
|
|
|
|
; running channel.
|
|
|
|
; log - Logging information. Read-only.
|
|
|
|
; verbose - Verbose information. Read-only.
|
|
|
|
; agent - Information about queues and agents and ability to add queue
|
|
|
|
; members to a queue.
|
|
|
|
; user - Permission to send and receive UserEvent.
|
|
|
|
; config - Ability to read and write configuration files.
|
|
|
|
; command - Permission to run CLI commands. Write-only.
|
|
|
|
; dtmf - Receive DTMF events. Read-only.
|
|
|
|
; reporting - Ability to get information about the system.
|
|
|
|
; cdr - Output of cdr_manager, if loaded. Read-only.
|
|
|
|
; dialplan - Receive NewExten and VarSet events. Read-only.
|
2008-04-07 22:16:46 +00:00
|
|
|
; originate - Permission to originate new calls. Write-only.
|
2008-01-10 00:12:35 +00:00
|
|
|
;
|
|
|
|
;read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
|
2008-04-07 21:49:27 +00:00
|
|
|
;write = system,call,agent,user,config,command,reporting,originate
|
2008-01-10 00:12:35 +00:00
|
|
|
|