summaryrefslogtreecommitdiffstats
path: root/configs/astmanproxy.conf
blob: 6164e9cc0c9c463eb7b930b192088c1c0717bef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
; astmanproxy.conf
; Asterisk Manager Proxy Configuration Sample
; (C) 2005-2006 David C. Troy

; List of asterisk host(s) you want to proxy
; host = ip_addr, port, user, secret, events, use_ssl
host = localhost, 5038, dave, moo, on, off
host = 192.168.1.173, 5038, dave, moo, on, on

;host = 127.0.0.2, 5038, user, secret, on
;host = otherhost, 5038, user, secret, on
;host = newhost, 5030, user, secret, off
;host = oldhost, 5040, user, secret, off
;host = myhost, 5038, user, secret, on

; Server reconnect interval (in seconds); how often to retry
; Connecting to an asterisk server whose connection was lost
retryinterval = 2

; Number of times to retry connecting to a given server
; use 0 for infinitely, or some finite number
maxretries = 10

; How long do we wait on the manager port for an SSL session start? (ms)
sslclienthellotimeout = 200

; Do we accept encrypted SSL manager connections?
acceptencryptedconnection = yes

; Do we accept unencrypted manager connections?
acceptunencryptedconnection = no

; Amount of time to wait before timing out on writes to asterisk
asteriskwritetimeout=100

; Amount of time to wait before timing out on writes to clients
clientwritetimeout=200

; Our server-side SSL certificate; what we use when answering clients
certfile = /var/lib/asterisk/certs/proxy-server.pem

; Address for proxy to listen on, can be set to * or x.x.x.x format
; recommend that you listen only on 127.0.0.1 or on an interface that
; is otherwise locked down to a trusted host, since the proxy
; currently provides NO authentication/authorization of its own
listenaddress = *

; Port for proxy to listen on		
listenport = 1234

; Setting a proxy key requires proxy client connections to
; specify a ProxyKey: keyvalue header in the first incoming request
; to the proxy.  Once this is done the client remains authenticated.
; This allows for a simple security layer.  If not specified,
; no key is required, however other security measures (listening on
; a protected interface, behind firewall, iptables, etc) should be
; in place and well understood.
; proxykey = foobar

; Do we require authentication (either proxykey or astmanproxy.users entry)?
authrequired = no

; user and group for proxy to run as; will NOT run as root!
proc_user = nobody
proc_group = nobody

; default input and output format for clients
; inputformat = (standard|xml|http)
; outputformat = (standard|xml|csv)
inputformat = standard
outputformat = standard

; set autofilter to be on or off by default
; with autofilter on, you can automatically filter responses
; to include only messages related to a specific actionid,
; as specified in a previous message
; valid values: on, off
; can also be changed on a per-client basis using
; ProxyAction: SetAutoFilter
; AutoFilter: (on|off)
autofilter = off

; location of logfile -- will be owned by proc_user/proc_group
;logfile = /opt/log/asterisk/astmanproxy.log
logfile = /var/log/asterisk/astmanproxy.log