TDM400P error: Unable to specify channel

Everything goes well with the loading of the Zaptel modules, ztcfg, and zttool. However, Asterisk fails to recognize the ZAP channel.

When starting Asterisk, the ZAP channels are not recognized and I am receiving the following error in /var/log/asterisk/messages:

[Apr 14 14:02:22] WARNING[29312] chan_zap.c: Unable to specify channel 1: No such device or address [Apr 14 14:02:22] ERROR[29312] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 [Apr 14 14:02:22] ERROR[29312] chan_zap.c: Unable to register channel '1'

What am I doing wrong?

Vitals:
OS: Fedora Core release 6 (Zod) - Linux version 2.6.20-1.2944.fc6 (brewbuilder@ls20-bc1-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Tue Apr 10 17:27:49 EDT 2007

TDM400P: FXO modules are in ports 3 and 4; FXS module in port 1. I am currently just trying to get port 3 working.

Compiled from source:

  • Asterisk: asterisk-1.4.2
  • Zaptel: zaptel-1.4.1
  • Libpri: libpri-1.4.0

Yes I have modprobed wctdm (lsmod|grep wc):

wctdm 38080 0 zaptel 185252 4 wctdm,zttranscode

ztcfg -vvv returns:

[code]Zaptel Version: 1.4.1
Echo Canceller: MG2
Configuration

Channel map:

Channel 03: FXS Kewlstart (Default) (Slaves: 03)

1 channels configured.
[/code]

zttool shows:

lspci indicates:


zaptel.conf

[code]loadzone = us
defaultzone=us

fxsks=3
[/code]


zapata.conf

[code][channels]
context=default
usecallerid=yes
hidecallerid=no
immediate=no

signalling=fxs_ks
callerid=test <0000>
echocancel=yes
group=1
channel=>1
[/code]

Load zaptel driver, rerun ./configure in Asterisk, recompile. If you want to confirm, make menuselect and see if it allows you to compile chan_zap.

Your signalling and channels are mixed up. You specify channel 3 in zaptel.conf with fxsks signaling which is correct since it’s an fxo. However you have channel 1 specified in zapata.conf with signaling fxs_ks which would be wrong since it’s fxs interface. It should be

zaptal.conf:
fxoks=1
fxsks=3-4

zapata.conf:
signalling=fxo_ks
channel => 1

signalling=fxs_ks
channel => 3-4