System information

phones that all have line keys directly associated with the analog lines. For the purposes
of this example, we will say we have two analog lines and four SIP phones. Each SIP
phone will have a button for line1 and a button for line2. This section will assume that
you have done some configuration up front, including:
Configuring the four SIP phones. For more information on setting up SIP phones,
see Chapter 5.
Configuring the two analog lines. Fore more information on setting up analog lines
with Asterisk, see Chapter 7.
For this example, we will use the following device names for the SIP phones and analog
lines. Be sure to adapt the examples to match your own configuration:
SIP/station1
SIP/station2
SIP/station3
SIP/station4
DAHDI/1
DAHDI/2
sla.conf
As mentioned previously, sla.conf contains configuration that maps devices to trunks
and stations. For this example, we will start by defining the two trunks:
[line1]
type = trunk
device = DAHDI/1
[line2]
type = trunk
device = DAHDI/2
Next, we will set up the station definitions. We have four SIP phones, which will each
use both trunks. Note that the section names in sla.conf for stations do not need to
match the SIP device names, but it is done that way here for convenience:
[station1]
type = station
device = SIP/station1
trunk = line1
trunk = line2
[station2]
type = station
device = SIP/station2
trunk = line1
trunk = line2
320 | Chapter 14:Device States