[Help] ZAP configuration problem


#1

Hi,

I am trying to setup an ISDN PBX using a quadBRI PCI ISDN card.

I am using Asterisk 1.2.7.1 (Asterisk@Home 2.8) and bristuff 0.3.0-PRE-1o

When I try to start asterisk, I get the following:

asterisk -vvvc

 [ ... nothing abnormal ...]
 [chan_zap.so] => (Zapata Telephony w/PRI)
  == Parsing '/etc/asterisk/zapata.conf': Found

And then asterisk exits.

The corresponding entries in the log file are:

/var/log/asterisk/full:

VERBOSE[27160] logger.c:  [chan_zap.so] => (Zapata Telephony w/PRI)
VERBOSE[27160] logger.c:   == Parsing '/etc/asterisk/zapata.conf': 
VERBOSE[27160] logger.c:   == Parsing '/etc/asterisk/zapata.conf': Found
WARNING[27160] chan_zap.c: Unable to specify channel 1: No such device or address
ERROR[27160] chan_zap.c: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
ERROR[27160] chan_zap.c: Unable to register channel '1-2'
WARNING[27160] loader.c: chan_zap.so: load_module failed, returning -1
WARNING[27160] loader.c: Loading module chan_zap.so failed!
# ztcfg
ZT_SPANCONFIG failed on span 1: Invalid argument (22)

Kernel:

# uname -a
Linux asterisk1.local 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686 i686 i386 GNU/Linux

Modules:

# lsmod
Module                  Size  Used by
qozap                  23328  0
md5                     4033  1
ztdummy                 3924  0
wctdm                  34880  0
wcfxo                  13088  0
wcte11xp               27936  0
wct1xxp                19488  0
wct4xxp                65600  0
tor2                   91936  0
zaptel                207876  8 qozap,ztdummy,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt               2113  1 zaptel

zaptel.conf:

loadzone=nl
defaultzone=nl
# qozap span definitions
# most of the values should be bogus because we are not really zaptel
span=1,1,3,ccs,ami
span=2,0,3,ccs,ami
span=3,0,3,ccs,ami
span=4,0,3,ccs,ami

bchan=1,2
dchan=3
bchan=4,5
dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12

zapata.conf:

[channels]
musiconhold=default
switchtype = euroisdn

pridialplan = local
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 00

echotraining=no
echocancel = yes
immediate=yes
faxdetect=incoming

signalling = bri_net
context=isdn_in

group = 1
; S/T port 1
channel => 1-2

group = 2
;; S/T port 2
channel => 4-5

signalling = bri_net
context=isdn_pbx

group = 3
;; S/T port 3
channel => 7-8

group = 4
;; S/T port 4
channel => 10-11

Any ideas?

Thanks for your time,

Michael


#2

I removed the zaptel modules which loads by default Asterisk@Home and loaded only the needed qozap driver.