System information

device = SIP/5001_phone2
trunk = 5001
extensions.conf
The first part of the dialplan that is required is what will be executed when extension
5001 is dialed on the PBX. Normally, to call a phone you would use the Dial()
application. In this case, we’re going to use the SLATrunk() application. This will take
care of ringing both phones and keeping them bridged together:
exten => 5001,1,SLATrunk(5001)
Next, we will need a context that will be used for making outbound calls from this
shared extension. This assumes that 5001_phone1 and 5001_phone2 have been configured
with their context options set to 5001 in sip.conf:
[5001]
;
; This extension is needed if you want the shared extension to
; be used by default. In that case, have this extension dialed
; when the phone goes off-hook.
;
exten => 5001_phone1,1,SLAStation(5001_phone1)
;
; This is the extension that should be dialed when the 5001 key is
; pressed on 5001_phone1.
;
exten => 5001_phone1_5001,hint,SLA:5001_phone1_5001
exten => 5001_phone1_5001,1,SLAStation(5001_phone1_5001)
exten => 5001_phone2,1,SLAStation(5001_phone2)
exten => 5001_phone2_5001,hint,SLA:5001_phone2_5001
exten => 5001_phone2_5001,1,SLAStation(5001_phone2_5001)
Finally, we need an implementation of the 5001_outbound context. This will be used to
provide a dialtone and collect digits on the bridged line:
[5001_outbound]
exten => disa,1,DISA(no-password,5001_outbound)
;
; This context will also need to be able to see whatever
; extensions you would like to be reachable from this extension.
;
include => pbx_extensions
326 | Chapter 14:Device States