Zapata config. problem

Hello,

I m facing problem with the zaptel configuration .I m using 2 cards of Digium (TDM80), 8 ports each .Have set the following parameters

#/etc/zaptel.conf
fxoks=1
fxsks=2
loadzone=us
defaultzone=us

#/etc/asterisk/zapata.conf
[channels]
context=default
signaling=fxo_ks
group = 1
channel => 1

context=pstn
signaling=fxs_ks
group = 2
channel => 2

And the out put of :
]# ztcfg -vvvvv
Zaptel Version: 1.4.10
Echo Canceller: MG2
Configuration

Channel map:
Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
2 channels to configure.
Changing signalling on channel 1 from Unused to FXO Kewlstart
ZT_CHANCONFIG failed on channel 1: Invalid argument (22)
Did you forget that FXS interfaces are configured with FXO signalling
and that FXO interfaces use FXS signalling?

Modules have been loaded successfully by modprobe. Have connected the PSTN line.
This is the output of the card on slot 1.
active=yes
alarams=UNCONFIGURED
description=WildCard TDM80P 1
name=WCTDM/0
location=PCI Bus 06 slot 01
basechan=1
totchans=8
irq=20
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
port=5,FXO
port=6,FXO
port=7,FXO
port=8,FXO
Will appreciate if anybody would guide me to setup and resolve this signalling issue.

Thank in advance.

Your answer was right there in the error message!
See bold changes below to zapata.conf

[quote=“nomi883”]Did you forget that FXS interfaces are configured with FXO signalling
and that FXO interfaces use FXS signalling?[/quote]

[channels]
context=default
signaling=fxs_ks
group = 1
channel => 1

context=pstn
signaling=fxo_ks
group = 2
channel => 2

But both the cards (TDM800P) seems to be FXO completely , since two modules (red) have been attached to it. I have to use all the ports and channels in my configuration of zaptel and zapata.conf . How should i configure in both the files

If all 16 ports are FXO then this would be your config files

#/etc/zaptel.conf
loadzone=us
defaultzone=us
fxsks=1-16

#/etc/asterisk/zapata.conf
[channels]
context=pstn
signaling=fxs_ks
group=1
channel=1-16

i am going through the same problem, i have installed two TDM800 one with 8 fxo and the other with 8 fxs when i:

modprobe wctdm
genzaptelconf
ztcfg -vv

i get only 9,10,11,13,14,15 channels working on second card (FXS) when i hand edit zaptel.conf i get the same posted error:

changing signaling on channel 16 from Unused to fxoks …

i don’t think that the problem is wrong signaling issue as the zaptel.conf is generated automatically

is the TDM800 card is malfunctioning or there is a missing interrupts or what?

please help …