System information
[station3]
type = station
device = SIP/station3
trunk = line1
trunk = line2
[station4]
type = station
device = SIP/station4
trunk = line1
trunk = line2
The station configuration is a bit repetitive. Asterisk configuration file template sections
come in handy here to collapse the configuration down a bit. Here is the station con-
figuration again, but this time using a template:
[station](!)
type = trunk
trunk = line1
trunk = line2
[station1](station)
device = SIP/station1
[station2](station)
device = SIP/station2
[station3](station)
device = SIP/station3
[station4](station)
device = SIP/station4
extensions.conf
The next configuration file required for this example is /etc/asterisk/extensions.conf.
There are three contexts. First, we have the line1 and line2 contexts. When a call comes
in on one of the analog lines, it will come in to one of these contexts in the dialplan and
execute the SLATrunk() application. This application will take care of ringing all of the
appropriate stations:
[line1]
exten => s,1,SLATrunk(line1)
[line2]
exten => s,1,SLATrunk(line2)
The next section of the dialplan is the sla_stations context. All calls from the SIP
phones should be sent to this context. Further, the SIP phones should be configured
such that as soon as they go off-hook, they immediately make a call to the station1
Shared Line Appearances | 321