aboutsummaryrefslogtreecommitdiffstats
path: root/configs/sla.conf.sample
blob: a00df1f3fd69b3f161d1f8d76f642a1ff04ef18d (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
;
; Configuration for Shared Line Appearances (SLA).
;

; ---- General Options ----------------
[general]
; There are none!

; -------------------------------------


; ---- Trunk Declarations -------------

; Provide a name for this trunk.
[line1]
; This line is what marks this entry as a trunk.
type=trunk
; Map this trunk declaration to a specific device.
; NOTE: At this point, this *must* be a zap channel!
device=Zap/3
; This supports automatic generation of the dialplan entries if the autocontext
; option is used.  Each trunk should have a unique context name.  Then, in
; zapata.conf, this device should be configured to have incoming calls go to
; this context.
autocontext=line1

[line2]
type=trunk
device=Zap/4
autocontext=line2

[line3]
type=trunk
device=Zap/3
autocontext=line3

[line4]
type=trunk
device=Zap/4
autocontext=line4
; --------------------------------------


; ---- Station Declarations ------------

; In this example, all stations have the same trunks, so this configuration
; template is used to simplify the declaration of each station.
[station](!)
; This line indicates that this entry is a station.
type=station
; This supports automatic generation of the dialplan entries if the autocontext
; option is used.  All stations can use the same context without conflict.  The
; device for this station should have its context configured to the same one
; listed here.
autocontext=sla_stations
; Individually list all of the trunks that will appear on this station.  This
; order is significant.  It should be the same order as they appear on the
; phone.  The order here defines the order of preference that the trunks will
; be used.
trunk=line1
trunk=line2
trunk=line3
trunk=line4

; Define a station that uses the configuration from the template "station".
[station1](station)
; Each station must be mapped to a device.
device=SIP/station1

[station2](station)
device=SIP/station2

[station3](station)
device=SIP/station3

[station4](station)
device=SIP/station4

[station5](station)
device=SIP/station5
; --------------------------------------