Error messageZT_SPANCONFIG failed on span 1,invalid argument

Hi
I have a TDM400 and T1 card
zaptel 204292 3 wcfxo,wcte11xp,wctdm
crc_ccitt 2369 1 zaptel

I configured zaptel and zapata.conf for signalling and channels, and did modprobe wctdm,modprobe wcfxo, modprobe wcfxs, modprobe wcte11xp,

now when I do a ztcfg -vv I get this error
[root@localhost sbin]# ./ztcfg -vv

Zaptel Configuration

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: D-channel (Default) (Slaves: 28)

28 channels configured.

ZT_SPANCONFIG failed on span 1: Invalid argument (22)

and asterisk fails to start when (asterisk -vvvvc)giving this errors

[chan_features.so] => (Feature Proxy Channel)
== Registered channel type ‘Feature’ (Feature Proxy Channel Driver)
[chan_oss.so] => (OSS Console Channel Driver)
== Parsing ‘/etc/asterisk/oss.conf’: Found
== Registered channel type ‘Console’ (OSS Console Channel Driver)
[chan_zap.so] => (Zapata Telephony w/PRI)
== Parsing ‘/etc/asterisk/zapata.conf’: Found
Jun 30 11:25:17 WARNING[8062]: chan_zap.c:923 zt_open: Unable to specify channel 1: No such device or address
Jun 30 11:25:17 ERROR[8062]: chan_zap.c:6883 mkintf: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Jun 30 11:25:17 ERROR[8062]: chan_zap.c:10319 setup_zap: Unable to register channel '1’
Jun 30 11:25:17 WARNING[8062]: loader.c:414 __load_resource: chan_zap.so: load_module failed, returning -1
Jun 30 11:25:17 WARNING[8062]: loader.c:554 load_modules: Loading module chan_zap.so failed!

thanks for any help :confused:

post zaptel.conf

Zaptel.conf
fxoks=1-3
fxsks=4
bchan=5-27
dchan=28
loadzone = us
defaultzone=us

also
[root@localhost sbin]# cat /proc/zaptel/*
Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

       1 WCTDM/0/0
       2 WCTDM/0/1
       3 WCTDM/0/2
       4 WCTDM/0/3

Span 2: WCT1/0 “Digium Wildcard TE110P T1/E1 Card 0”

       5 WCT1/0/1
       6 WCT1/0/2
       7 WCT1/0/3
       8 WCT1/0/4
       9 WCT1/0/5
      10 WCT1/0/6
      11 WCT1/0/7
      12 WCT1/0/8
      13 WCT1/0/9
      14 WCT1/0/10
      15 WCT1/0/11
      16 WCT1/0/12
      17 WCT1/0/13
      18 WCT1/0/14
      19 WCT1/0/15
      20 WCT1/0/16
      21 WCT1/0/17
      22 WCT1/0/18
      23 WCT1/0/19
      24 WCT1/0/20
      25 WCT1/0/21
      26 WCT1/0/22
      27 WCT1/0/23
      28 WCT1/0/24

thanks

modprobe wctdm,modprobe wcfxo, modprobe wcfxs, modprobe wcte11xp

You said you have two cards wctdm400P and TE110P.
You only need to load the wctdm and wcte11x module to kernel.
wxfxo and wcfxs is not required.

Make sure that you have supplied power to both cards in the PCI slot.
I am saying this because the error
"Unable to specify channel 1: No such device or address "
happens when asterisk cannot detect the card for which you have
written the config settings.

What can you see when you run zttool?
Can you see the WCTDM device?

I see the green lights on back of the TDM card. so I guess power should be fine,
zttool sees the cards but says unconfigured
Alarms Span │
│ UNCONFIGURED Wildcard TDM400P REV I Board 1 ↑ │
│ UNCONFIGURED Digium Wildcard TE110P T1/E1 Card 0

if I do a cat/proc/zaptel/* I get this
Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"
1 WCTDM/0/0
2 WCTDM/0/1
3 WCTDM/0/2
4 WCTDM/0/3
Span 2: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0"
5 WCT1/0/1
6 WCT1/0/2
7 WCT1/0/3
8 WCT1/0/4
9 WCT1/0/5
10 WCT1/0/6
11 WCT1/0/7
12 WCT1/0/8
13 WCT1/0/9
14 WCT1/0/10
15 WCT1/0/11
16 WCT1/0/12
17 WCT1/0/13
18 WCT1/0/14
19 WCT1/0/15
20 WCT1/0/16
21 WCT1/0/17
22 WCT1/0/18
23 WCT1/0/19
24 WCT1/0/20
25 WCT1/0/21
26 WCT1/0/22
27 WCT1/0/23
28 WCT1/0/24
so according to this I have the zaptel configured
fxoks=1-3
fxsks=4
bchan=5-27
dchan=28
span=1,1,0,esf,b8zs

is there anything wrong with the way I have the channels configured? at this point except for zaptel.conf and zapata.conf is there any other cofig file that needs to be configured to just get dial tone?

thanks,

FYI, i had a very similar issue (a single span T1 card, with two TDM400P cards, all in the same server).

the ONLY fix i could ever come up with was to move the analog ports to the END of the span config.

so i have e&m=1-24 and fxsks=25-32.

works like a champ now.

i know that the analog ports are supposed to come first, but i could never get that to work. you might try reversing everything, just for grins…

whoiswes,
Ok so I should modprobe the T1 first and wctdm second right?

thanks,

if you swap the order, then yes…i think that’s how i got it to work.

also, FWIW, we have a wildcard in another machine that requires the same steps - load the analog ports last. i know this is contrary to the documentation, but it’s the only way we could get everything to load without errors.

let me know if this works for you as well…if it does, i’d like to know more about your config, perhaps there is something common between our two systems that requires this alteration.

I switched the order T1 first and TDM second, it seems that its working but I get another error now, these are the changes I made
to zaptel.conf

fxoks=25-27
fxsks=28
e&m=1-24
span=2,1,0,esf,b8zs

then I did
[root@localhost sbin]# ./modprobe wcte11xp
[root@localhost sbin]# ./modprobe wctdm
[root@localhost sbin]# ./ztcfg -vv

Zaptel Configuration

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: E & M (Default) (Slaves: 01)
Channel 02: E & M (Default) (Slaves: 02)
Channel 03: E & M (Default) (Slaves: 03)
Channel 04: E & M (Default) (Slaves: 04)
Channel 05: E & M (Default) (Slaves: 05)
Channel 06: E & M (Default) (Slaves: 06)
Channel 07: E & M (Default) (Slaves: 07)
Channel 08: E & M (Default) (Slaves: 08)
Channel 09: E & M (Default) (Slaves: 09)
Channel 10: E & M (Default) (Slaves: 10)
Channel 11: E & M (Default) (Slaves: 11)
Channel 12: E & M (Default) (Slaves: 12)
Channel 13: E & M (Default) (Slaves: 13)
Channel 14: E & M (Default) (Slaves: 14)
Channel 15: E & M (Default) (Slaves: 15)
Channel 16: E & M (Default) (Slaves: 16)
Channel 17: E & M (Default) (Slaves: 17)
Channel 18: E & M (Default) (Slaves: 18)
Channel 19: E & M (Default) (Slaves: 19)
Channel 20: E & M (Default) (Slaves: 20)
Channel 21: E & M (Default) (Slaves: 21)
Channel 22: E & M (Default) (Slaves: 22)
Channel 23: E & M (Default) (Slaves: 23)
Channel 24: E & M (Default) (Slaves: 24)
Channel 25: FXO Kewlstart (Default) (Slaves: 25)
Channel 26: FXO Kewlstart (Default) (Slaves: 26)
Channel 27: FXO Kewlstart (Default) (Slaves: 27)
Channel 28: FXS Kewlstart (Default) (Slaves: 28)

28 channels configured.

Changing signalling on channel 4 from Unused to E & M
ZT_CHANCONFIG failed on channel 4: Invalid argument (22)
Did you forget that FXS interfaces are configured with FXO signalling
and that FXO interfaces use FXS signalling?

can you tell me the order I should modprobe to get rid of this error?

[root@localhost etc]# /sbin/lsmod | grep zaptel
zaptel 204292 3 wcfxo,wcte11xp,wctdm
crc_ccitt 2369 1 zaptel

thanks,

the FXS/FXO error means that you have the signalling reversed.

try

fxsks=25-27
fxoks=28

instead…you might need to check your card to see what modules are on what slots.

it looks like ztcfg is parsing the files correctly now, though, so you’re past the invalid sytax issue at least.

I think I have the signalling right, I looked at the module and I have 3FXS ports (1-3)green ones and one FXO port 4 red one.
so then the signalling in zaptel should be
fxoks=25-27
fxsks=28

zttool shows that the tdm card is configured right,
Alarms Span │
│ OK Wildcard TDM400P REV I Board 1 ↑ │
│ UNCONFIGURED Digium Wildcard TE110P T1/E1 Card 0

thanks,

you’re right then…i wonder if the ‘cached’ config is causing issues.

leave your config in place and run ztcfg again…you might also have to unload and reload everything (or just restart).

give that a shot and we’ll go from there.

I am trying to unload and reload the drivers
I did a
[root@localhost sbin]# ./rmmod wcte11xp
[root@localhost sbin]# ./rmmod wctdm
[root@localhost sbin]# ./modprobe wcte11xp
ZT_SPANCONFIG failed on span 2: No such device or address (6)
FATAL: Error running install command for wcte11xp
[root@localhost sbin]# ./modprobe wctdm

and I do a ztcfg -vv gone back to the same error !
[root@localhost sbin]# ./ztcfg -vv

Zaptel Configuration

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: E & M (Default) (Slaves: 01)
Channel 02: E & M (Default) (Slaves: 02)
Channel 03: E & M (Default) (Slaves: 03)
Channel 04: E & M (Default) (Slaves: 04)
Channel 05: E & M (Default) (Slaves: 05)
Channel 06: E & M (Default) (Slaves: 06)
Channel 07: E & M (Default) (Slaves: 07)
Channel 08: E & M (Default) (Slaves: 08)
Channel 09: E & M (Default) (Slaves: 09)
Channel 10: E & M (Default) (Slaves: 10)
Channel 11: E & M (Default) (Slaves: 11)
Channel 12: E & M (Default) (Slaves: 12)
Channel 13: E & M (Default) (Slaves: 13)
Channel 14: E & M (Default) (Slaves: 14)
Channel 15: E & M (Default) (Slaves: 15)
Channel 16: E & M (Default) (Slaves: 16)
Channel 17: E & M (Default) (Slaves: 17)
Channel 18: E & M (Default) (Slaves: 18)
Channel 19: E & M (Default) (Slaves: 19)
Channel 20: E & M (Default) (Slaves: 20)
Channel 21: E & M (Default) (Slaves: 21)
Channel 22: E & M (Default) (Slaves: 22)
Channel 23: E & M (Default) (Slaves: 23)
Channel 24: E & M (Default) (Slaves: 24)
Channel 25: FXO Kewlstart (Default) (Slaves: 25)
Channel 26: FXO Kewlstart (Default) (Slaves: 26)
Channel 27: FXO Kewlstart (Default) (Slaves: 27)
Channel 28: FXS Kewlstart (Default) (Slaves: 28)

28 channels configured.

ZT_SPANCONFIG failed on span 2: Invalid argument (22)

I did not change any config files or anything and both cards are again unconfigured
Alarms Span │
│ UNCONFIGURED Digium Wildcard TE110P T1/E1 Card 0 ↑ │
│ UNCONFIGURED Wildcard TDM400P REV I Board 1 ▒ │

:frowning: :confused:

you might need to do a rmmod zaptel as well.

so like this:

rmmod wcte11xp
rmmod wctdm
rmmod zaptel

modprobe wcte11xp
modprobe wctdm

ztcfg -vvv

would it be possible to reboot this box? that might be a good way to make sure we have everything cleared out.

I changed the span from span=2,1,0,esf,b8zs to span=1,1,0,esf,b8zs
and did a ztcfg and I am not getting any errors
[root@localhost sbin]# ./ztcfg -vv

Zaptel Configuration

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: E & M (Default) (Slaves: 01)
Channel 02: E & M (Default) (Slaves: 02)
Channel 03: E & M (Default) (Slaves: 03)
Channel 04: E & M (Default) (Slaves: 04)
Channel 05: E & M (Default) (Slaves: 05)
Channel 06: E & M (Default) (Slaves: 06)
Channel 07: E & M (Default) (Slaves: 07)
Channel 08: E & M (Default) (Slaves: 08)
Channel 09: E & M (Default) (Slaves: 09)
Channel 10: E & M (Default) (Slaves: 10)
Channel 11: E & M (Default) (Slaves: 11)
Channel 12: E & M (Default) (Slaves: 12)
Channel 13: E & M (Default) (Slaves: 13)
Channel 14: E & M (Default) (Slaves: 14)
Channel 15: E & M (Default) (Slaves: 15)
Channel 16: E & M (Default) (Slaves: 16)
Channel 17: E & M (Default) (Slaves: 17)
Channel 18: E & M (Default) (Slaves: 18)
Channel 19: E & M (Default) (Slaves: 19)
Channel 20: E & M (Default) (Slaves: 20)
Channel 21: E & M (Default) (Slaves: 21)
Channel 22: E & M (Default) (Slaves: 22)
Channel 23: E & M (Default) (Slaves: 23)
Channel 24: E & M (Default) (Slaves: 24)
Channel 25: FXO Kewlstart (Default) (Slaves: 25)
Channel 26: FXO Kewlstart (Default) (Slaves: 26)
Channel 27: FXO Kewlstart (Default) (Slaves: 27)
Channel 28: FXS Kewlstart (Default) (Slaves: 28)

28 channels configured.
zttool

│ Alarms Span │
│ OK Digium Wildcard TE110P T1/E1 Card 0 ↑ │
│ OK Wildcard TDM400P REV I Board 1 ▒ │
│ ▒

at this point if I plug a normal phone to one of the fxs port should I get dial tone or not?
thanks,

i believe you should…on our systems when i plug in, i get a dialtone.

Hey Thanks so much for your help,
I got rid of the error. I restarted the asterisk -vvvvc and I get dial tone, I think the zapata.conf is not configured right cause I see this warning

Asterisk Ready.
*CLI> – Starting simple switch on ‘Zap/24-1’
– Starting simple switch on ‘Zap/25-1’
== Unknown extension ‘s’ in context ‘inboundvoip’ requested
– Hungup ‘Zap/25-1’
– Playing ‘ss-noservice’ (language ‘en’)
– Hungup ‘Zap/24-1’
– Starting simple switch on 'Zap/24-1’
Jul 3 11:21:53 WARNING[14535]: chan_zap.c:5382 ss_thread: getdtmf on channel 24 : Operation now in progress
– Hungup 'Zap/24-1’
I haven’t configured extensions yet, is that why?
thanks again

yes, looks like your ‘inboundvoip’ context is not defined…