| 
									
										
										
										
											2006-08-14 01:32:46 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; Configuration for Shared Line Appearances (SLA). | 
					
						
							| 
									
										
										
										
											2006-08-14 01:32:46 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2023-11-09 16:26:46 -05:00
										 |  |  | ; See https://docs.asterisk.org for more information. | 
					
						
							| 
									
										
										
										
											2007-02-28 18:21:47 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-08-14 01:32:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; ---- General Options ---------------- | 
					
						
							|  |  |  | [general] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-14 16:34:03 +00:00
										 |  |  | ;attemptcallerid=no         ; Attempt CallerID handling.  The default value for this | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; is "no" because CallerID handling with an SLA setup is | 
					
						
							|  |  |  |                             ; known to not work properly in some situations.  However, | 
					
						
							|  |  |  |                             ; feel free to enable it if you would like.  If you do, and | 
					
						
							|  |  |  |                             ; you find problems, please do not report them. | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; ------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-10 01:56:15 +00:00
										 |  |  | ; ******************************** | 
					
						
							|  |  |  | ; **** Configuration Ordering **** | 
					
						
							|  |  |  | ; ******************************** | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ; Note that SLA configuration processing assumes that *all* trunk declarations are | 
					
						
							|  |  |  | ; listed in the configuration file before any stations. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ; ******************************** | 
					
						
							|  |  |  | ; ******************************** | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; ---- Trunk Declarations ------------- | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;[line1]                    ; Provide a name for this trunk. | 
					
						
							| 
									
										
										
										
											2007-02-28 23:02:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;type=trunk                 ; This line is what marks this entry as a trunk. | 
					
						
							| 
									
										
										
										
											2007-02-28 23:02:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-02 19:30:49 +00:00
										 |  |  | ;device=DAHDI/3             ; Map this trunk declaration to a specific device. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; NOTE: You can not just put any type of channel here. | 
					
						
							|  |  |  |                             ;       DAHDI channels can be directly used.  IP trunks | 
					
						
							|  |  |  |                             ;       require some indirect configuration which is | 
					
						
							| 
									
										
										
										
											2017-12-22 09:23:22 -05:00
										 |  |  |                             ;       described in | 
					
						
							| 
									
										
										
										
											2023-11-09 16:26:46 -05:00
										 |  |  |                             ; https://docs.asterisk.org/Configuration/Applications/Shared-Line-Appearances-SLA/ | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;autocontext=line1          ; This supports automatic generation of the dialplan entries | 
					
						
							|  |  |  |                             ; if the autocontext option is used.  Each trunk should have | 
					
						
							|  |  |  |                             ; a unique context name.  Then, in chan_dahdi.conf, this device | 
					
						
							|  |  |  |                             ; should be configured to have incoming calls go to this context. | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;ringtimeout=30             ; Set how long to allow this trunk to ring on an inbound call before hanging | 
					
						
							|  |  |  |                             ; it up as an unanswered call.  The value is in seconds. | 
					
						
							| 
									
										
										
										
											2007-02-22 23:12:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;barge=no                   ; If this option is set to "no", then no station will be | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; allowed to join a call that is in progress.  The default | 
					
						
							|  |  |  |                             ; value is "yes". | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;hold=private               ; This option configure hold permissions for this trunk. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ;   "open"    - This means that any station can put this trunk | 
					
						
							|  |  |  |                             ;               on hold, and any station can retrieve it from | 
					
						
							|  |  |  |                             ;               hold.  This is the default. | 
					
						
							|  |  |  |                             ;   "private" - This means that once a station puts the | 
					
						
							|  |  |  |                             ;               trunk on hold, no other station will be | 
					
						
							|  |  |  |                             ;               allowed to retrieve the call from hold. | 
					
						
							| 
									
										
										
										
											2007-02-28 19:57:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;[line2] | 
					
						
							|  |  |  | ;type=trunk | 
					
						
							| 
									
										
										
										
											2008-06-12 17:27:55 +00:00
										 |  |  | ;device=DAHDI/4 | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;autocontext=line2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ;[line3] | 
					
						
							|  |  |  | ;type=trunk | 
					
						
							| 
									
										
										
										
											2008-06-12 17:27:55 +00:00
										 |  |  | ;device=DAHDI/3 | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;autocontext=line3 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ;[line4] | 
					
						
							|  |  |  | ;type=trunk | 
					
						
							| 
									
										
										
										
											2007-03-01 23:44:09 +00:00
										 |  |  | ;device=Local/disa@line4_outbound ; A Local channel in combination with the Disa | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                                   ; application can be used to support IP trunks. | 
					
						
							| 
									
										
										
										
											2023-11-09 16:26:46 -05:00
										 |  |  |                                   ; See https://docs.asterisk.org/Configuration/Applications/Shared-Line-Appearances-SLA/ | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;autocontext=line4 | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; -------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ; ---- Station Declarations ------------ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 23:02:49 +00:00
										 |  |  | ;[station1]                 ; Define a name for this station. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;type=station               ; This line indicates that this entry is a station. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 23:02:49 +00:00
										 |  |  | ;device=SIP/station1        ; Each station must be mapped to a device. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;autocontext=sla_stations   ; 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. | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;ringtimeout=10             ; Set a timeout for how long to allow the station to ring for an | 
					
						
							|  |  |  |                             ; incoming call, in seconds. | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;ringdelay=10               ; Set a time for how long to wait before beginning to ring this station | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; once there is an incoming call, in seconds. | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;hold=private               ; This option configure hold permissions for this station.  Note | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; that if private hold is set in the trunk entry, that will override | 
					
						
							|  |  |  |                             ; anything here.  However, if a trunk has open hold access, but this | 
					
						
							|  |  |  |                             ; station is set to private hold, then the private hold will be in | 
					
						
							|  |  |  |                             ; effect. | 
					
						
							|  |  |  |                             ;   "open"    - This means that once this station puts a call | 
					
						
							|  |  |  |                             ;               on hold, any other station is allowed to retrieve | 
					
						
							|  |  |  |                             ;               it.  This is the default. | 
					
						
							|  |  |  |                             ;   "private" - This means that once this station puts a | 
					
						
							|  |  |  |                             ;               call on hold, no other station will be | 
					
						
							|  |  |  |                             ;               allowed to retrieve the call from hold. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:32:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;trunk=line1                ; Individually list all of the trunks that will appear on this station.  This | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; 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. | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;trunk=line2 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;trunk=line3,ringdelay=5    ; A ring delay for the station can also be specified for a specific trunk. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; If a ring delay is specified both for the whole station and for a specific | 
					
						
							|  |  |  |                             ; trunk on a station, the setting for the specific trunk will take priority. | 
					
						
							|  |  |  |                             ; This value is in seconds. | 
					
						
							| 
									
										
										
										
											2007-02-28 18:21:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 22:09:33 +00:00
										 |  |  | ;trunk=line4,ringtimeout=5  ; A ring timeout for the station can also be specified for a specific trunk. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; If a ring timeout is specified both for the whole station and for a specific | 
					
						
							|  |  |  |                             ; trunk on a station, the setting for the specific trunk will take priority. | 
					
						
							|  |  |  |                             ; This value is in seconds. | 
					
						
							| 
									
										
										
										
											2007-02-22 23:12:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-03 00:01:25 +00:00
										 |  |  | ;[station](!)               ; When there are a lot of stations that are configured the same way, | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                             ; it is convenient to use a configuration template like this so that | 
					
						
							|  |  |  |                             ; the common settings stay in one place. | 
					
						
							| 
									
										
										
										
											2007-03-03 00:01:25 +00:00
										 |  |  | ;type=station | 
					
						
							|  |  |  | ;autocontext=sla_stations | 
					
						
							|  |  |  | ;trunk=line1 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;trunk=line2 | 
					
						
							| 
									
										
										
										
											2007-03-03 00:01:25 +00:00
										 |  |  | ;trunk=line3 | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ;trunk=line4 | 
					
						
							| 
									
										
										
										
											2007-03-03 00:01:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-02-28 23:02:49 +00:00
										 |  |  | ;[station2](station)        ; Define a station that uses the configuration from the template "station". | 
					
						
							| 
									
										
										
										
											2007-02-20 16:42:33 +00:00
										 |  |  | ;device=SIP/station2 | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;[station3](station) | 
					
						
							|  |  |  | ;device=SIP/station3 | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;[station4](station) | 
					
						
							|  |  |  | ;device=SIP/station4 | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;[station5](station) | 
					
						
							|  |  |  | ;device=SIP/station5 | 
					
						
							| 
									
										
										
										
											2007-02-10 00:40:57 +00:00
										 |  |  | ; -------------------------------------- |