Configuring Channel Bank

I’m having trouble configuring a dual-port T1 card to work with a channel bank.

We’re currently running FreePBX 2.2.0 rc3 under Trixbox 2.0.0 with a Digium TE205P dual-port T1 card. Port 1 is used for our PRI and port 2 is for an Adtran TA750 channel bank for fax machines. We’re building a replacement server using another TE205P and the same Adtran TA570 and PBX-In-A-Flash with FreePBX 2.5.0.1.

I wasn’t the one that originally configured the working setup, but when I look at its zapata.conf, it doesn’t look like it has enough information to even be working right now, but it is working.

I copied the zapata.conf (and zapata-auto.conf) from the working server to the new server and I’m able to make and receive calls just fine over the PRI. I have solid green lights on both ports of the T1 card, but the channel bank doesn’t have dial tone and when I try to make an inbound call to one of the channels, i get a single ring and then the congestion tone.

I configured one of the channels as an extension using generic ZAP device. I also tried configuring it under ZAP channel. Neither worked.

Here is my zapata.conf … it doesn’t look pretty, but I didn’t write it and it is working:

;
; Zapata telephony interface
;
; Configuration file
[trunkgroups]
[channels]
signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master
switchtype=national
pridialplan=national
language=en
context=from-zaptel
;# signalling=fxo_ks
;# rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
relaxdtmf=yes
;faxdetect=both
;faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-auto.conf
group=0
channel=1-23
group=1
; signalling=fxs_ls
; channel => 25-48
; stripmsd=1
switchtype = national
pridialplan=national
;# context = analog_phones
; nsf = megacom
signalling = fxo_ks
; busydetect=yes
context=from-internal
channel => 25-48
; overlapdial = yes
;Include AMP configs
;#include zapata_additional.conf

… and here is the zapata-auto.conf that is included:
; Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived

; Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1”
; ??: 1 TE2/0/1/1
; ??: 2 TE2/0/1/2
; ??: 3 TE2/0/1/3
; ??: 4 TE2/0/1/4
; ??: 5 TE2/0/1/5
; ??: 6 TE2/0/1/6
; ??: 7 TE2/0/1/7
; ??: 8 TE2/0/1/8
; ??: 9 TE2/0/1/9
; ??: 10 TE2/0/1/10
; ??: 11 TE2/0/1/11
; ??: 12 TE2/0/1/12
; ??: 13 TE2/0/1/13
; ??: 14 TE2/0/1/14
; ??: 15 TE2/0/1/15
; ??: 16 TE2/0/1/16
; ??: 17 TE2/0/1/17
; ??: 18 TE2/0/1/18
; ??: 19 TE2/0/1/19
; ??: 20 TE2/0/1/20
; ??: 21 TE2/0/1/21
; ??: 22 TE2/0/1/22
; ??: 23 TE2/0/1/23
; ??: 24 TE2/0/1/24

; Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2”
; ??: 25 TE2/0/2/1
; ??: 26 TE2/0/2/2
; ??: 27 TE2/0/2/3
; ??: 28 TE2/0/2/4
; ??: 29 TE2/0/2/5
; ??: 30 TE2/0/2/6
; ??: 31 TE2/0/2/7
; ??: 32 TE2/0/2/8
; ??: 33 TE2/0/2/9
; ??: 34 TE2/0/2/10
; ??: 35 TE2/0/2/11
; ??: 36 TE2/0/2/12
; ??: 37 TE2/0/2/13
; ??: 38 TE2/0/2/14
; ??: 39 TE2/0/2/15
; ??: 40 TE2/0/2/16
; ??: 41 TE2/0/2/17
; ??: 42 TE2/0/2/18
; ??: 43 TE2/0/2/19
; ??: 44 TE2/0/2/20
; ??: 45 TE2/0/2/21
; ??: 46 TE2/0/2/22
; ??: 47 TE2/0/2/23
; ??: 48 TE2/0/2/24
; Span 3: ZTDUMMY/1 “ZTDUMMY/1 1”

Any help would be much appreciated!