System information

Additional Configuration
The /etc/asterisk/sla.conf file has some optional configuration parameters that were not
used in any of the examples in this chapter. To give you an idea of what other behavior
can be configured, the options are covered here. This file has a [general] section that
is reserved for global configuration options. Currently, there is only a single option that
can be specified in this section:
attemptcallerid = yes
This option specifies whether or not the SLA applications should attempt to pass
caller ID information. It is set to no by default. If this is enabled, the display of the
phones may not be what you would expect in some situations.
The trunk definitions in the previous examples only specified the type and device. Here
are some additional options that can be specified for a trunk:
autocontext = line1
If this option is set, Asterisk will automatically create a dialplan context using this
name. The context will contain an s extension that executes the SLATrunk() appli-
cation with the appropriate argument for this trunk. By default, all dialplan entries
must be created manually.
ringtimeout = 20
This option allows you to specify the number of seconds to allow an inbound call
on this trunk to ring before the SLATrunk() application will exit and consider it an
unanswered call. By default, this option is not set.
barge = no
The barge option specifies whether or not other stations are allowed to join a call
that is in progress on this trunk by pressing the same line button. Barging into a
call on a trunk is allowed by default.
hold = private
The hold option specifies hold permissions for this trunk. If this option is set to
open, any station can place this trunk on hold and any other station is allowed to
take it back off of hold. If this option is set to private, only the station that placed
the trunk on hold is allowed to take it back off of hold. This option is set to open
by default.
When we defined the stations in the previous examples, we only supplied the type,
device, and a list of trunks. However, station definitions accept some additional con-
figuration options, as well. They are listed here:
autocontext = sla_stations
If this option is specified, Asterisk will automatically create the extensions required
for calls coming from this station in the context specified. This is off by default,
which means that all extensions must be specified manually.
Shared Line Appearances | 327