Channel Bank com 36 portas sendo 4 fxo
1- vim /etc/zaptel.conf
loadzone=br
defaultzone=br
### channel bank cianet ##
dynamic=eth,eth0/00:19:46:,36,1 ; mac e qntas portas possuem o channel seguido do cascateamento (so tenho um entao ele é o 1)
fxoks=1-32 ; portas fxs
fxsks=33-36 ; portas fxo
2 – Editar o /etc/asterisk/zapata.conf
[general]
language=pt_BR
[channels]
echocancel=yes
echocancelwhenbridge=no
language=pt_BR
; Placa FXO
context= ura
rxgain=0.0
txgain=0.0
busydetect=yes
busycount=2
group=2
usercallerid=yes
usercallerid=yes
cidstart=ring
callprogress = yes
signalling = fxs_ks
channel => 34-36,1-4
; Linha Cartao
context=linhacartao
signalling =fxs_ks
group = 2
channel => 33
; Demais (FXS) RAMAIS
usercallerid=yes
callwaiting=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
context=a2billing
group=1
callgroup=1
pickupgroup=1
signalling =fxo_ks
channel => 5-14,16-32
language=pt_BR
callerid=”Ramal” <901>
channel => 1
callerid=”Ramal” <902>
channel => 2
callerid=”Ramal” <903>
channel => 3
callerid=”Ramal” <904>
channel =>4
callerid=”Ramal” <905>
channel =>5
callerid=”Ramal” <906>
channel =>6
3 – Reload no asterisk e realizar o plano de discagem de acordo para funcionamento