Change the formatting of sla.conf.sample to make it more readable.

(issue #9112, blitzrage)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-02-20 16:41:57 +00:00
parent 920f332399
commit 6bdc40358a

View File

@@ -10,73 +10,69 @@
; ---- Trunk Declarations ------------- ; ---- Trunk Declarations -------------
;
;[line1] ; Provide a name for this trunk.
;type=trunk ; This line is what marks this entry as a trunk.
;
;device=Zap/3 ; Map this trunk declaration to a specific device.
; NOTE: At this point, this *must* be a zap channel!
; Provide a name for this trunk. ;autocontext=line1 ; This supports automatic generation of the dialplan entries
[line1] ; if the autocontext option is used. Each trunk should have
; This line is what marks this entry as a trunk. ; a unique context name. Then, in zapata.conf, this device
type=trunk ; should be configured to have incoming calls go to this context.
; 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] ;[line2]
type=trunk ;type=trunk
device=Zap/4 ;device=Zap/4
autocontext=line2 ;autocontext=line2
[line3] ;[line3]
type=trunk ;type=trunk
device=Zap/3 ;device=Zap/3
autocontext=line3 ;autocontext=line3
[line4] ;[line4]
type=trunk ;type=trunk
device=Zap/4 ;device=Zap/4
autocontext=line4 ;autocontext=line4
; -------------------------------------- ; --------------------------------------
; ---- Station Declarations ------------ ; ---- Station Declarations ------------
; In this example, all stations have the same trunks, so this configuration ;[station](!) ; In this example, all stations have the same trunks, so this
; template is used to simplify the declaration of each station. ; configuration template is used to simplify the declaration
[station](!) ; of each 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". ;type=station ; This line indicates that this entry is a station.
[station1](station)
; Each station must be mapped to a device.
device=SIP/station1
[station2](station) ;autocontext=sla_stations ; This supports automatic generation of the dialplan entries if
device=SIP/station2 ; 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.
[station3](station) ;trunk=line1 ; Individually list all of the trunks that will appear on this station. This
device=SIP/station3 ; 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=line2
;trunk=line3
;trunk=line4
[station4](station) ;[station1](station) ; Define a station that uses the configuration from the template "station".
device=SIP/station4 ;device=SIP/station1 ; Each station must be mapped to a device.
;
[station5](station) ;[station2](station)
device=SIP/station5 ;device=SIP/station2
;
;[station3](station)
;device=SIP/station3
;
;[station4](station)
;device=SIP/station4
;
;[station5](station)
;device=SIP/station5
; -------------------------------------- ; --------------------------------------