QuadBRI ISDN card gives ZT_SPANCONFIG error

Hello,

I have recently bought and installed a Junghanns QuadBRI isdn card but I can’t seem to get it to work with Asterisk.

Every time I run ztcfg -vvvv I get the following error

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: D-channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: D-channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: D-channel (Default) (Slaves: 12)

12 channels configured.

ZT_SPANCONFIG failed on span 3: No such device or address (6)

It used to say that span 1 didn’t work, but for some reason that stopped then it said span 2 didn’t work and I don’t know why but that dissapeared as well.

When I give the cat /proc/zaptel/* command, I see 2 spans

Span 1: ztqoz/2/1 “quadBRI PCI ISDN Card 1 Span 1 [TE] (cardID 6)” AMI/CCS

       1 ztqoz2/1/1
       2 ztqoz2/1/2
       3 ztqoz2/1/3

Span 2: ztqoz/2/2 “quadBRI PCI ISDN Card 1 Span 2 [TE] (cardID 6)” AMI/CCS

       4 ztqoz2/2/1
       5 ztqoz2/2/2
       6 ztqoz2/2/3

When using ZTTOOL I also see 2 spans, but they are both unconfigured according to ZTTOOL. And it says that 0 channels are configured…

Zaptel Tool ©2002 Linux Support Services, Inc.

                âââââââââââââââââââââ⤠Zapata Telephony Interfaces âââââââââââââââââââââââ
                â                                                                        â
                â     Alarms          Span                                               â
                â     UNCONFIGURED    quadBRI PCI ISDN Card 1 Span 1 [TE] (ca         â  â
                â     UNCONFIGURED    quadBRI PCI ISDN Card 1 Span 2 [TE] (ca         â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     â  â
                â                                                                     #  â
                â                                                                        â
                â                                                                        â
                â          ââââââââââ                              ââââââââ              â
                â          â Select â                              â Quit â              â
                â          ââââââââââ                              ââââââââ              â
                â                                                                        â
                ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ

Span 2: 3 total channels, 0 configured F1=Details F10=Quit

when I give the LSMod command

Module Size Used by
zttranscode 12552 0
qozap 28704 0
zaptel 188836 4 zttranscode,qozap
crc_ccitt 6081 1 zaptel
i915 81541 2
parport_pc 27777 1
lp 15405 0
parport 37641 2 parport_pc,lp
autofs4 22725 0
sunrpc 143397 1
button 10449 0
battery 12869 0
ac 8773 0
md5 8001 1
ipv6 241761 14
uhci_hcd 32601 0
ehci_hcd 32069 0
hw_random 9429 0
snd_intel8x0 34921 0
snd_ac97_codec 65169 1 snd_intel8x0
snd_pcm_oss 52345 0
snd_mixer_oss 21825 1 snd_pcm_oss
snd_pcm 91973 2 snd_intel8x0,snd_pcm_oss
snd_timer 27973 1 snd_pcm
snd_page_alloc 13641 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 11329 1 snd_intel8x0
snd_rawmidi 27749 1 snd_mpu401_uart
snd_seq_device 11849 1 snd_rawmidi
snd 56997 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 12961 1 snd
3c59x 41341 0
e100 36421 0
mii 9153 2 3c59x,e100
floppy 58065 0
dm_snapshot 21093 0
dm_zero 6337 0
dm_mirror 31645 0
ext3 118729 2
jbd 59609 1 ext3
dm_mod 60357 8 dm_snapshot,dm_zero,dm_mirror

It shows that Qozap and Zaptel are loaded. I didn’t use the make config command to make them boot because somebody told me that might cause a problem so instead I added the following lines to my rc.local file.

cd /usr/src/bristuff-bristuff-0.4.0-test1/qozap
modprobe zaptel
insmod qozap.ko
sleep 5s
ztcfg -vv
asterisk

As you can see I am running a test version of Bristuff, but it’s the only version of Bristuff that works with Asterisk 1.4

My zaptel.conf file shoultn’d be causing problems either I think.

loadzone=nl
defaultzone=nl
span=1,1,0,ccs,ami
bchan=1-2
dchan=3
span=2,1,0,ccs,ami
bchan=4-5
dchan=6
span=3,1,0,ccs,ami
bchan=7-8
dchan=9
span=4,1,0,ccs,ami
bchan=10-11
dchan=12

And my zapata.conf in case it matters looks like this

[channels]
switchtype=euroisdn
signalling=bri_net_ptmp
pridialplan=unknown
prilocaldialplan=unknown
language=nl
context=default
callerid=asreceived
busydetect=yes
;busycount=8 ; Hoeveel bussy tonen ontvangen moeten zijn voordat Asterisk lijn als Bussy configureert
threewaycalling=yes
callgroup=1
pickupgroup=1
faxdetect=both
channel=1-2
channel=4-5
channel=7-8
channel=10-11

For the record don’t know if matters. I am using CentOS 4.4, Asterisk 1.4 with bristuff-0.4.0-test1

So does anybody have an idea on what the hell might be wrong here? Because I’m stuck.

No idea’s? Anybody?