Upgrade 3CX to v18 and get it hosted free!

Asterisk as CHANNEL BANK

Author image

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


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.