Error: ZT_SPANCONFIG failed on span 1: Invalid argument (22)

Does anybody knows how to resolve this issue?

ztcfg -vvv

Zaptel Configuration

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 399-533 feet (DSX-1)
SPAN 3: CAS/HDB3 Build-out: 399-533 feet (DSX-1)
SPAN 4: CAS/ AMI Build-out: 399-533 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)
Channel 13: FXS Kewlstart (Default) (Slaves: 13)
Channel 14: FXS Kewlstart (Default) (Slaves: 14)
Channel 15: FXS Kewlstart (Default) (Slaves: 15)
Channel 16: FXS Kewlstart (Default) (Slaves: 16)

16 channels configured.

ZT_SPANCONFIG failed on span 1: Invalid argument (22)

Thank you

you’re going to have to post what cards you have in there, and your zaptel and zapata conf files … we can’t guess !

Hello,
The card are TDM400P and B410P.

zaptel.conf:

span = 1,1,3,ccs,ami
span = 2,1,3,ccs,hdb3
span = 3,1,3,cas,hdb3
span = 4,1,3,cas,ami

bchan = 1,2
dchan = 3

bchan = 4,5
dchan = 6

bchan = 7,8
dchan = 9

bchan = 10,11
dchan = 12

fxsks=13-16 # los 4 conectores anal?gicos de la TDM400P

loadzone = es
defaultzone = es

misdn-init.conf:

card=1,0x4
te_ptmp=1,2,3,4
poll=128
dsp_options=0
dtmftreshold=100
debug=0

zapata.conf:

[channels]
language=es

group = 2
switchtype = euroisdn
;signalling = fxs_ks
;signalling = bri_net
signalling = bri_cpe_ptmp
;signaling=fxs_ks
pridialplan=local
echocancel = yes
context = incoming-pstn
channel => 1-2,4-5,7-8,10-11

group=1
context=incoming-pstn
signalling=fxs_ks
echocancelation=64
echotraining=800
echocancelwhenbridged=no
busydetect = no
;answeronpolarityswitch=yes ;;; <estas son
;hanguponpolarityswitch=yes ;;; <estas son
progzone=es

rxgain=0.0
txgain=0.0

channel => 13-16

I think that maybe the problem is the “signalling = = bri_cpe_ptmp”

trying to run asterisk I get:

…Oct 20 05:24:06 ERROR[7417]: chan_zap.c:10602 setup_zap: Unknown signalling method 'bri_cpe_ptmp’
Oct 20 05:24:06 ERROR[7417]: chan_zap.c:10227 setup_zap: Signalling must be specified before any channels are.
Oct 20 05:24:06 WARNING[7417]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Oct 20 05:24:06 WARNING[7417]: loader.c:554 load_modules: Loading module chan_zap.so failed!
[root@unit0 install-misdn-mqueue]# Ouch … error while writing audio data: : Broken pipe

Thank you.

Hello,
The card are TDM400P and B410P.

zaptel.conf:

span = 1,1,3,ccs,ami
span = 2,1,3,ccs,hdb3
span = 3,1,3,cas,hdb3
span = 4,1,3,cas,ami

bchan = 1,2
dchan = 3

bchan = 4,5
dchan = 6

bchan = 7,8
dchan = 9

bchan = 10,11
dchan = 12

fxsks=13-16 # los 4 conectores anal?gicos de la TDM400P

loadzone = es
defaultzone = es

misdn-init.conf:

card=1,0x4
te_ptmp=1,2,3,4
poll=128
dsp_options=0
dtmftreshold=100
debug=0

zapata.conf:

[channels]
language=es

group = 2
switchtype = euroisdn
;signalling = fxs_ks
;signalling = bri_net
signalling = bri_cpe_ptmp
;signaling=fxs_ks
pridialplan=local
echocancel = yes
context = incoming-pstn
channel => 1-2,4-5,7-8,10-11

group=1
context=incoming-pstn
signalling=fxs_ks
echocancelation=64
echotraining=800
echocancelwhenbridged=no
busydetect = no
;answeronpolarityswitch=yes ;;; <estas son
;hanguponpolarityswitch=yes ;;; <estas son
progzone=es

rxgain=0.0
txgain=0.0

channel => 13-16

I think that maybe the problem is the “signalling = = bri_cpe_ptmp”

trying to run asterisk I get:

…Oct 20 05:24:06 ERROR[7417]: chan_zap.c:10602 setup_zap: Unknown signalling method 'bri_cpe_ptmp’
Oct 20 05:24:06 ERROR[7417]: chan_zap.c:10227 setup_zap: Signalling must be specified before any channels are.
Oct 20 05:24:06 WARNING[7417]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Oct 20 05:24:06 WARNING[7417]: loader.c:554 load_modules: Loading module chan_zap.so failed!
[root@unit0 install-misdn-mqueue]# Ouch … error while writing audio data: : Broken pipe

Thank you.

if i’m reading the Digium KB article correctly, you don’t need to add anything to zapata.conf for mISDN devices … just misdn.conf

the signalling method you’re trying looks to be part of the BRIStuff patch/package, and not required any more.

kb.digium.com/entry/55/131/

not sure i like the kernel requirements though :exclamation:

I did anythink in this acricule but the lights of the B410P not flashing.
I instaled mISDN within the Zaptel directory with “make B410P” command
then recomplie zaptel, libpri and asterisk.

Have I to recompile the kernel of linux?

I did what this articule describe too:

trixbox.org/modules/newbb/vi … 45&forum=4

you’ve followed both sets of instructions in the past 30 minutes ??

as the TB forum seems to be a successful method, if you’ve followed that then it sounds like your next port of call is going to be Digium support … support@digium.com

no baconbuttie, I have working still 14 hours about this B410P card and I trying anything to intend to get it work.

The curiouse is that in one moment I reach that the leds of the cards blinks in red. Then I get out the cards form the box and put it in and this magic moment went away.

In this moment I searchink how I can made the B410P blink in red…

Thank you.