manager.conf.sample 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. ;
  2. ; AMI - The Asterisk Manager Interface
  3. ;
  4. ; Third party application call management support and PBX event supervision
  5. ;
  6. ; This configuration file is read every time someone logs in
  7. ;
  8. ; Use the "manager show commands" at the CLI to list available manager commands
  9. ; and their authorization levels.
  10. ;
  11. ; "manager show command <command>" will show a help text.
  12. ;
  13. ; ---------------------------- SECURITY NOTE -------------------------------
  14. ; Note that you should not enable the AMI on a public IP address. If needed,
  15. ; block this TCP port with iptables (or another FW software) and reach it
  16. ; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
  17. ; interface available over http/https if Asterisk's http server is enabled in
  18. ; http.conf and if both "enabled" and "webenabled" are set to yes in
  19. ; this file. Both default to no. httptimeout provides the maximum
  20. ; timeout in seconds before a web based session is discarded. The
  21. ; default is 60 seconds.
  22. ;
  23. [general]
  24. enabled = no
  25. ;webenabled = yes
  26. port = 5038
  27. bindaddr = 0.0.0.0
  28. ; Parameters that control AMI over TLS. ("enabled" must be set too).
  29. ; You can open a connection to this socket with e.g.
  30. ;
  31. ; openssl s_client -connect my_host:5039
  32. ;
  33. ;tlsenable=no ; set to YES to enable it
  34. ;tlsbindaddr=0.0.0.0:5039 ; address and port to bind to, default to bindaddr and port 5039
  35. ;tlscertfile=/tmp/asterisk.pem ; path to the certificate.
  36. ;tlsprivatekey=/tmp/private.pem ; path to the private key, if no private given,
  37. ; if no tlsprivatekey is given, default is to search
  38. ; tlscertfile for private key.
  39. ;tlscipher=<cipher string> ; string specifying which SSL ciphers to use or not use
  40. ;
  41. ;allowmultiplelogin = yes ; IF set to no, rejects manager logins that are already in use.
  42. ; ; The default is yes.
  43. ;
  44. ;displayconnects = yes
  45. ;
  46. ; Add a Unix epoch timestamp to events (not action responses)
  47. ;
  48. ;timestampevents = yes
  49. ;brokeneventsaction = yes ; Restore previous behavior that caused the events
  50. ; action to not return a response in certain
  51. ; circumstances. Defaults to 'no'.
  52. ;
  53. ; Display certain channel variables every time a channel-oriented
  54. ; event is emitted:
  55. ;
  56. ;channelvars = var1,var2,var3
  57. ; debug = on ; enable some debugging info in AMI messages (default off).
  58. ; Also accessible through the "manager debug" CLI command.
  59. ; authtimeout specifies the maximum number of seconds a client has to
  60. ; authenticate. If the client does not authenticate beofre this timeout
  61. ; expires, the client will be disconnected. (default: 30 seconds)
  62. ;authtimeout = 30
  63. ; authlimit specifies the maximum number of unauthenticated sessions that will
  64. ; be allowed to connect at any given time.
  65. ;authlimit = 50
  66. ;httptimeout = 60
  67. ; a) httptimeout sets the Max-Age of the http cookie
  68. ; b) httptimeout is the amount of time the webserver waits
  69. ; on a action=waitevent request (actually its httptimeout-10)
  70. ; c) httptimeout is also the amount of time the webserver keeps
  71. ; a http session alive after completing a successful action
  72. ;[mark]
  73. ;secret = mysecret
  74. ;deny=0.0.0.0/0.0.0.0
  75. ;permit=209.16.236.73/255.255.255.0
  76. ;
  77. ;eventfilter=Event: Newchannel
  78. ;eventfilter=!Channel: DAHDI*
  79. ; The eventfilter option is used to whitelist or blacklist events per user to be
  80. ; reported with regular expressions and are allowed if both the regex matches
  81. ; and the user has read access set below. Filters are assumed to be for whitelisting
  82. ; unless preceeded by an exclamation point, which marks it as being black.
  83. ; Evaluation of the filters is as follows:
  84. ; - If no filters are configured all events are reported as normal.
  85. ; - If there are white filters only: implied black all filter processed first,
  86. ; then white filters.
  87. ; - If there are black filters only: implied white all filter processed first,
  88. ; then black filters.
  89. ; - If there are both white and black filters: implied black all filter processed
  90. ; first, then white filters, and lastly black filters.
  91. ;
  92. ; If the device connected via this user accepts input slowly,
  93. ; the timeout for writes to it can be increased to keep it
  94. ; from being disconnected (value is in milliseconds)
  95. ;
  96. ; writetimeout = 100
  97. ;
  98. ;displayconnects = yes ; Display on CLI user login/logoff
  99. ;
  100. ; Authorization for various classes
  101. ;
  102. ; Read authorization permits you to receive asynchronous events, in general.
  103. ; Write authorization permits you to send commands and get back responses. The
  104. ; following classes exist:
  105. ;
  106. ; all - All event classes below (including any we may have missed).
  107. ; system - General information about the system and ability to run system
  108. ; management commands, such as Shutdown, Restart, and Reload.
  109. ; call - Information about channels and ability to set information in a
  110. ; running channel.
  111. ; log - Logging information. Read-only. (Defined but not yet used.)
  112. ; verbose - Verbose information. Read-only. (Defined but not yet used.)
  113. ; agent - Information about queues and agents and ability to add queue
  114. ; members to a queue.
  115. ; user - Permission to send and receive UserEvent.
  116. ; config - Ability to read and write configuration files.
  117. ; command - Permission to run CLI commands. Write-only.
  118. ; dtmf - Receive DTMF events. Read-only.
  119. ; reporting - Ability to get information about the system.
  120. ; cdr - Output of cdr_manager, if loaded. Read-only.
  121. ; dialplan - Receive NewExten and VarSet events. Read-only.
  122. ; originate - Permission to originate new calls. Write-only.
  123. ; agi - Output AGI commands executed. Input AGI command to execute.
  124. ; cc - Call Completion events. Read-only.
  125. ; aoc - Permission to send Advice Of Charge messages and receive Advice
  126. ; - Of Charge events.
  127. ; test - Ability to read TestEvent notifications sent to the Asterisk Test
  128. ; Suite. Note that this is only enabled when the TEST_FRAMEWORK
  129. ; compiler flag is defined.
  130. ;
  131. ;read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
  132. ;write = system,call,agent,user,config,command,reporting,originate