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