rendered paste body#--------------------------
# Start /etc/zaptel.conf
loadzone=us
defaultzone=us
# Digium Wildcard TDM04B (POTS to PSTN [Zap/g1])
fxsks=1-4
# Sangoma A102 port 1 (T1 to stations [Zap/g2])
span=1,0,0,esf,b8zs
fxoks=5-28
# Sangoma A102 port 2 (T1 to PSTN [Zap/g3])
span=1,2,0,esf,b8zs
e&m=29-52
# End /etc/zaptel.conf
#--------------------------
#--------------------------
# Start /etc/asterisk/zapata.conf
[trunkgroups]
; Wildcard TDM04B (inbound / outbound POTS to PSTN)
signalling=fxs_ks
context=from-external
echocancel=yes
echocancelwhenbridged=yes
busydetect=yes
musiconhold=default
group=1
channel => 1-4
callprogress=no
; Sangoma A102 port 1 (internal T1 to stations)
context=from-internal
group=2
signalling=fxo_ks
channel => 5-28
; Sangoma A102 port 2 (outbound T1 to PSTN)
context=from-internal
group=3
signalling=e&m
channel => 29-52
[channels]
context=default
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=0
callgroup=1
pickupgroup=1
immediate=no
# End /etc/asterisk/zapata.conf
#---------------------------------