zapata.conf
[trunkgroups]
[channels]
context=default
switchtype=national
signalling=fxo_ls
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
#include zapata-channels.conf
zapata-channels.conf
; Span 1: OPVXA1200/0 "OpenVox A1200P Board 1"
;;; line="1 OPVXA1200/0/0 FXOKS"
signalling=fxo_ks
callerid="Channel 1" <6001>
mailbox=6001
group=5
context=line1
busycount=no
callprogress=no
channel => 1
;;; line="2 OPVXA1200/0/1 FXOKS"
signalling=fxo_ks
callerid="Channel 2" <6002>
mailbox=6002
group=5
context=line2
busycount=no
callprogress=no
channel => 2
;;; line="3 OPVXA1200/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 3" <6003>
mailbox=6003
group=5
context=line3
busycount=no
callprogress=no
channel => 3
;;; line="4 OPVXA1200/0/3 FXOKS"
signalling=fxo_ks
callerid="Channel 4" <6004>
mailbox=6004
group=5
context=line4
busycount=no
callprogress=no
channel => 4
;;; line="5 OPVXA1200/0/4 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 5
;;; line="6 OPVXA1200/0/5 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 6
;;; line="7 OPVXA1200/0/6 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 7
;;; line="8 OPVXA1200/0/7 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 8
sip.conf
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
allowsubscribe=yes
subscribecontext = sla_stations
notifyringing = yes
notifyhold = yes
[authentication]
[station1]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations
[station2]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations
[station3]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations
[206]
type=friend
secret=1234
mailbox=206
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontect=sla_stations
sla.conf
[general]
attemptcallerid=yes
autocontext=sla_stations
[line1]
type=trunk
device=Local/disa@line1_outbound
autocontext=line1
[line2]
type=trunk
device=Local/disa@line2_outbound
autocontext=line2
[line3]
type=trunk
device=Local/disa@line3_outbound
autocontext=line3
[line4]
type=trunk
device=Local/disa@line4_outbound
autocontect=line4
[station](!)
type=station
trunk=line1
trunk=line2
trunk=line3
trunk=line4
autocontext=sla_stations
[station1](station)
device=SIP/station1
[station2](station)
device=SIP/station2
[station3](station)
device=SIP/station3
[206](station)
device=SIP/206
extensions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest
;IAXINFO=myuser:mypass
TRUNK=Zap/g2
TRUNKMSD=1
[macro-slaline]
exten => s,1,SLATrunk(${ARG1})
exten => s,n,Goto(s-${SLATRUNK_STATUS}|1)
exten => s-FAILURE,1,Voicemail(1234|u)
exten => s-UNANSWERED,1,Voicemail(1234|u)
[line1]
exten => s,1,Macro(slaline|line1)
[line2]
exten => s,1,Macro(slaline|line2)
[line3]
exten => s,1,Macro(slaline|line3)
[line4]
exten => s,1,Macro(slaline|line4)
[line1_outbound]
exten => disa,1,Disa(no-password|line1_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/5/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)
[line2_outbound]
exten => disa,1,Disa(no-password|line2_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/6/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)
[line3_outbound]
exten => disa,1,Disa(no-password|line3_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/7/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)
[line4_outbound]
exten => disa,1,Disa(no-password|line4_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/8/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)
[sla_stations]
exten => station1,1,SLAStation(station1)
exten => station1_line1,hint,SLA:station1_line1
exten => station1_line1,1,SLAStation(station1_line1)
exten => station1_line2,hint,SLA:station1_line2
exten => station1_line2,1,SLAStation(station1_line2)
exten => station1_line3,hint,SLA:station1_line3
exten => station1_line3,1,SLAStation(station1_line3)
exten => station1_line4,hint,SLA:station1_line4
exten => station1_line4,1,SLAStation(station1_line4)
exten => station2,1,SLAStation(station2)
exten => station2_line1,hint,SLA:station2_line1
exten => station2_line1,1,SLAStation(station2_line1)
exten => station2_line2,hint,SLA:station2_line2
exten => station2_line2,1,SLAStation(station2_line2)
exten => station2_line3,hint,SLA:station2_line3
exten => station2_line3,1,SLAStation(station2_line3)
exten => station2_line4,hint,SLA:station2_line4
exten => station2_line4,1,SLAStation(station2_line4)
exten => station3,1,SLAStation(station3)
exten => station3_line1,hint,SLA:station3_line1
exten => station3_line1,1,SLAStation(station3_line1)
exten => station3_line2,hint,SLA:station3_line2
exten => station3_line2,1,SLAStation(station3_line2)
exten => station3_line3,hint,SLA:station3_line3
exten => station3_line3,1,SLAStation(station3_line3)
exten => station3_line4,hint,SLA:station3_line4
exten => station3_line4,1,SLAStation(station3_line4)
exten => 206_line1,hint,SLA:206_line1
exten => 206_line1,1,SLAStation(206_line1)
exten => 206_line2,hint,SLA:206_line2
exten => 206_line2,1,SLAStation(206_line2)
exten => 206_line3,hint,SLA:206_line3
exten => 206_line3,1,SLAStation(206_line3)
exten => 206_line4,hint,SLA:206_line4
exten => 206_line4,1,SLAStation(206_line4)
exten => 8500,1,VoicemailMain(1234)