aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-10 00:35:09 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-10 00:35:09 +0000
commitf8fd21a76914f014fbbd305c52143dbc5ca8d208 (patch)
treef7a2651dc85cb172ee02f3ae676bac9eab1b8c6c /configs
parent8878f5e14d7b6bc35ba0f2cd194788cf9df9cc45 (diff)
Merge team/russell/sla_rewrite
This is a completely new implementation of the SLA functionality introduced in Asterisk 1.4. It is now functional and ready for testing. However, I will be adding some additional features over the next week, as well. For information on how to set this up, see configs/sla.conf.sample and doc/sla.txt. In addition to the changes in app_meetme.c for the SLA implementation itself, this merge brings in various other changes: chan_sip: - Add the ability to indicate HOLD state in NOTIFY messages. - Queue HOLD and UNHOLD control frames even if the channel is not bridged to another channel. linkedlists.h: - Add support for rwlock based linked lists. dial.c: - Add the ability to run ast_dial_start() without a reference channel to inherit information from. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53810 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r--configs/sla.conf.sample98
1 files changed, 77 insertions, 21 deletions
diff --git a/configs/sla.conf.sample b/configs/sla.conf.sample
index e7fc472c1..a00df1f3f 100644
--- a/configs/sla.conf.sample
+++ b/configs/sla.conf.sample
@@ -1,26 +1,82 @@
-; Configuration file for SLAs (Shared Line Appearances).
-
-; Defining a SLA uses the following syntax:
-;
-; type => Technology/TechData
-;
-; type => trunk or station
-; Technology => the channel driver (see show channeltypes)
-; TechData => the data specific to the channel driver
;
-; The Technology/TechData information is the same as that provided to the
-; Dial application.
+; Configuration for Shared Line Appearances (SLA).
;
-; define a SLA called junky
-[junky]
-trunk => SIP/10
-station => SIP/15
-station => SIP/16
+; ---- 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
-;define a SLA called markster
-[markster]
-trunk => Zap/1
-station => SIP/20
+[station5](station)
+device=SIP/station5
+; --------------------------------------
-; Also you can see SLA infos via the CLI, by typing "sla show"