Asterisk as CHANNEL BANK

I had to press an Asterisk Box with a T1 Card and a 24 Port Analog card into service for a burnt out 8fxo,16fxs channel-bank. It is trivial, but the extensions.conf is kind of neat and is worth documenting. Here is the pertinent info...

faxtemp:~ # lsmod
Module                  Size  Used by
wct1xxp                17184  0
wctdm24xxp            113632  24
zaptel                190852  100 wct1xxp,wctdm24xxp



faxtemp:~ # cat /etc/zaptel.conf | grep -Ev "^ *#"| grep -Ev "^ *$"
loadzone = us
defaultzone=us
span=2,1,0,esf,b8zs
fxsks=1-8
fxoks=9-24
fxoks=25-32             # Chan 1-8 fxo, chan 9-24 fxs
fxsks=33-48             #


faxtemp:~ # cat /etc/asterisk/zapata.conf | grep -Ev "^ *;" | grep -Ev "^ *$"
[trunkgroups]
[channels]
usecallerid=no
callwaiting=no
usecallingpres=yes
callwaitingcallerid=no
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
immediate=yes
context=ports-fxo
signalling=fxs_ks
channel=1-8
context=ports-fxs
signalling=fxo_ks
channel=9-24
context=t1-fxs
channel = 25-32
context=t1-fxo
signalling=fxs_ks
channel = 33-48


faxtemp:~ # cat /etc/asterisk/extensions.conf | grep -Ev "^ *;" | grep -Ev "^ *$"
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
[t1-fxs]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]-24])
exten => s,n,Hangup
[t1-fxo]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]-24])
exten => s,n,Hangup
[ports-fxo]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]+24])
exten => s,n,Hangup
[ports-fxs]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]+24])
exten => s,n,Hangup

I had to press an Asterisk Box with a T1 Card and a 24 Port Analog card into service for a burnt out 8fxo,16fxs channel-bank. It is trivial, but the extensions.conf is kind of neat and is worth documenting. Here is the pertinent info...

faxtemp:~ # lsmod
Module                  Size  Used by
wct1xxp                17184  0
wctdm24xxp            113632  24
zaptel                190852  100 wct1xxp,wctdm24xxp



faxtemp:~ # cat /etc/zaptel.conf | grep -Ev "^ *#"| grep -Ev "^ *$"
loadzone = us
defaultzone=us
span=2,1,0,esf,b8zs
fxsks=1-8
fxoks=9-24
fxoks=25-32             # Chan 1-8 fxo, chan 9-24 fxs
fxsks=33-48             #


faxtemp:~ # cat /etc/asterisk/zapata.conf | grep -Ev "^ *;" | grep -Ev "^ *$"
[trunkgroups]
[channels]
usecallerid=no
callwaiting=no
usecallingpres=yes
callwaitingcallerid=no
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
immediate=yes
context=ports-fxo
signalling=fxs_ks
channel=1-8
context=ports-fxs
signalling=fxo_ks
channel=9-24
context=t1-fxs
channel = 25-32
context=t1-fxo
signalling=fxs_ks
channel = 33-48


faxtemp:~ # cat /etc/asterisk/extensions.conf | grep -Ev "^ *;" | grep -Ev "^ *$"
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
[t1-fxs]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]-24])
exten => s,n,Hangup
[t1-fxo]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]-24])
exten => s,n,Hangup
[ports-fxo]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]+24])
exten => s,n,Hangup
[ports-fxs]
exten => s,1,Dial(Zap/$[$["${CHANNEL}" : "[^0-9]+([0-9]+)"]+24])
exten => s,n,Hangup

Created by: jharragi, Last modification: Wed 20 of Jan, 2010 (15:14 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+