Problem with X100P (ZT_SPANCONFIG failed)


#1

Hello!

I have a problem with the installation of the X100P card.

I compiled zaptel and I ran
modprobe zaptel
modprobe wcfxo

But I get the following error by running wcfxo:
ZT_SPANCONFIG failed on span 1: Invalid argument (22)

I also get the error by running ztcfg:

asterisk:~# ztcfg -vv

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Individual Clear channel (Default) (Slaves: 01)
Channel 02: Individual Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)

4 channels configured.

ZT_SPANCONFIG failed on span 1: Invalid argument (22)

Some informations about my system (Debian Sarge with 2.6.10 kernel)
lsmod says:

asterisk:~# lsmod
Module                  Size  Used by
wcfxo                  12032  0
zaptel                219556  1 wcfxo
hfcsusb                28712  0
mISDN_dtmf              8968  0
mISDN_dsp             191968  0
mISDN_x25dte           30204  0
mISDN_core             73796  4 hfcsusb,mISDN_dtmf,mISDN_dsp,mISDN_x25dte

/etc/zaptel.conf:

# hfc-s pci a span definition
# most of the values should be bogus because we are not really zaptel
loadzone=nl
defaultzone=nl

span=1,1,3,ccs,ami
bchan=1-2
dchan=3

#Signaling for 1 X100P Wildcards.
fxsks = 4

/etc/asterisk/zapata.conf:

echocancel=yes
usecallerid=yes
context=incoming
signalling=fxs_ks
channel => 4

I would be very happy if you could help me!

A lot of thanks and kind regards
Dakapo


#2

you have an x100p card (1 line) but obviously configured multiple lines.

I suggest you read some more about fxo cards (fxs signalling).

The files you need to alter are: zaptel.conf and zapata.conf


#3

Hi zoa,

thank you for your reply! Where do you read, that I have configured multiple lines? I searched for documents but I didn’t find any that helped me. I would be very thankfull for an advice

Dakapo


#4

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Individual Clear channel (Default) (Slaves: 01)
Channel 02: Individual Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)

4 channels configured.

–> th is should show only 1, not 4