1 ; |
|
2 ; Configuration for Shared Line Appearances (SLA). |
|
3 ; |
|
4 ; See doc/sla.pdf for more information. |
|
5 ; |
|
6 |
|
7 ; ---- General Options ---------------- |
|
8 ;[general] |
|
9 |
|
10 ;attemptcallerid=no ; Attempt CallerID handling. The default value for this |
|
11 ; is "no" because CallerID handling with an SLA setup is |
|
12 ; known to not work properly in some situations. However, |
|
13 ; feel free to enable it if you would like. If you do, and |
|
14 ; you find problems, please do not report them. |
|
15 ; ------------------------------------- |
|
16 |
|
17 |
|
18 ; ---- Trunk Declarations ------------- |
|
19 ; |
|
20 ;[line1] ; Provide a name for this trunk. |
|
21 |
|
22 ;type=trunk ; This line is what marks this entry as a trunk. |
|
23 |
|
24 ;device=Zap/3 ; Map this trunk declaration to a specific device. |
|
25 ; NOTE: You can not just put any type of channel here. |
|
26 ; Zap channels can be directly used. IP trunks |
|
27 ; require some indirect configuration which is |
|
28 ; described in doc/sla.pdf. |
|
29 |
|
30 ;autocontext=line1 ; This supports automatic generation of the dialplan entries |
|
31 ; if the autocontext option is used. Each trunk should have |
|
32 ; a unique context name. Then, in zapata.conf, this device |
|
33 ; should be configured to have incoming calls go to this context. |
|
34 |
|
35 ;ringtimeout=30 ; Set how long to allow this trunk to ring on an inbound call before hanging |
|
36 ; it up as an unanswered call. The value is in seconds. |
|
37 |
|
38 ;barge=no ; If this option is set to "no", then no station will be |
|
39 ; allowed to join a call that is in progress. The default |
|
40 ; value is "yes". |
|
41 |
|
42 ;hold=private ; This option configure hold permissions for this trunk. |
|
43 ; "open" - This means that any station can put this trunk |
|
44 ; on hold, and any station can retrieve it from |
|
45 ; hold. This is the default. |
|
46 ; "private" - This means that once a station puts the |
|
47 ; trunk on hold, no other station will be |
|
48 ; allowed to retrieve the call from hold. |
|
49 |
|
50 ;[line2] |
|
51 ;type=trunk |
|
52 ;device=Zap/4 |
|
53 ;autocontext=line2 |
|
54 |
|
55 ;[line3] |
|
56 ;type=trunk |
|
57 ;device=Zap/3 |
|
58 ;autocontext=line3 |
|
59 |
|
60 ;[line4] |
|
61 ;type=trunk |
|
62 ;device=Local/disa@line4_outbound ; A Local channel in combination with the Disa |
|
63 ; application can be used to support IP trunks. |
|
64 ; See doc/sla.pdf on more information on how |
|
65 ; IP trunks work. |
|
66 ;autocontext=line4 |
|
67 ; -------------------------------------- |
|
68 |
|
69 |
|
70 ; ---- Station Declarations ------------ |
|
71 |
|
72 ;[station1] ; Define a name for this station. |
|
73 |
|
74 ;type=station ; This line indicates that this entry is a station. |
|
75 |
|
76 ;device=SIP/station1 ; Each station must be mapped to a device. |
|
77 |
|
78 ;autocontext=sla_stations ; This supports automatic generation of the dialplan entries if |
|
79 ; the autocontext option is used. All stations can use the same |
|
80 ; context without conflict. The device for this station should |
|
81 ; have its context configured to the same one listed here. |
|
82 |
|
83 ;ringtimeout=10 ; Set a timeout for how long to allow the station to ring for an |
|
84 ; incoming call, in seconds. |
|
85 |
|
86 ;ringdelay=10 ; Set a time for how long to wait before beginning to ring this station |
|
87 ; once there is an incoming call, in seconds. |
|
88 |
|
89 ;hold=private ; This option configure hold permissions for this station. Note |
|
90 ; that if private hold is set in the trunk entry, that will override |
|
91 ; anything here. However, if a trunk has open hold access, but this |
|
92 ; station is set to private hold, then the private hold will be in |
|
93 ; effect. |
|
94 ; "open" - This means that once this station puts a call |
|
95 ; on hold, any other station is allowed to retrieve |
|
96 ; it. This is the default. |
|
97 ; "private" - This means that once this station puts a |
|
98 ; call on hold, no other station will be |
|
99 ; allowed to retrieve the call from hold. |
|
100 |
|
101 |
|
102 ;trunk=line1 ; Individually list all of the trunks that will appear on this station. This |
|
103 ; order is significant. It should be the same order as they appear on the |
|
104 ; phone. The order here defines the order of preference that the trunks will |
|
105 ; be used. |
|
106 ;trunk=line2 |
|
107 ;trunk=line3,ringdelay=5 ; A ring delay for the station can also be specified for a specific trunk. |
|
108 ; If a ring delay is specified both for the whole station and for a specific |
|
109 ; trunk on a station, the setting for the specific trunk will take priority. |
|
110 ; This value is in seconds. |
|
111 |
|
112 ;trunk=line4,ringtimeout=5 ; A ring timeout for the station can also be specified for a specific trunk. |
|
113 ; If a ring timeout is specified both for the whole station and for a specific |
|
114 ; trunk on a station, the setting for the specific trunk will take priority. |
|
115 ; This value is in seconds. |
|
116 |
|
117 |
|
118 ;[station](!) ; When there are a lot of stations that are configured the same way, |
|
119 ; it is convenient to use a configuration template like this so that |
|
120 ; the common settings stay in one place. |
|
121 ;type=station |
|
122 ;autocontext=sla_stations |
|
123 ;trunk=line1 |
|
124 ;trunk=line2 |
|
125 ;trunk=line3 |
|
126 ;trunk=line4 |
|
127 |
|
128 ;[station2](station) ; Define a station that uses the configuration from the template "station". |
|
129 ;device=SIP/station2 |
|
130 ; |
|
131 ;[station3](station) |
|
132 ;device=SIP/station3 |
|
133 ; |
|
134 ;[station4](station) |
|
135 ;device=SIP/station4 |
|
136 ; |
|
137 ;[station5](station) |
|
138 ;device=SIP/station5 |
|
139 ; -------------------------------------- |
|
140 |
|