ZAP configuration problem

Hi,

I installed Asterix on SuSE Linux 9.1, 2.6.5-7.155.29. I have a TDM11B. When I start Asteriks, I am getting the following error:

[chan_zap.so] => (Zapata Telephony w/PRI)
== Parsing ‘/etc/asterisk/zapata.conf’: Found
Oct 16 21:11:01 WARNING[21199]: chan_zap.c:771 zt_open: Unable to specify channel 1: No such device
Oct 16 21:11:01 ERROR[21199]: chan_zap.c:6208 mkintf: Unable to open channel 1: No such device
here = 0, tmp->channel = 1, channel = 1
Oct 16 21:11:01 ERROR[21199]: chan_zap.c:9155 setup_zap: Unable to register channel '1’
Oct 16 21:11:01 WARNING[21199]: loader.c:345 ast_load_resource: chan_zap.so: load_module failed, returning -1
== Unregistered channel type ‘Tor’
== Unregistered channel type 'Zap’
Oct 16 21:11:01 WARNING[21199]: loader.c:440 load_modules: Loading module chan_zap.so failed!
vorfalak:~ # Ouch … error while writing audio data: : Broken pipe

zaptel.conf contains:

fxoks=1
fxsks=4
loadzone = us
defaultzone=us

zapata.conf contains:

echocancel=yes
echocancelwhenbridged=yes
echotraining=400

; condo context
callerid=“Phone 1” <1234>
mailbox=1234
signalling=fxo_ks
group=1
context=condo
channel=1

; PSTN context
signalling=fxs_ks
callerid=asreceived
group=2
;immediate=no
context=incoming
channel=4

vorfalak:~ # cat /proc/zaptel/1
Span 1: WCTDM/0 “Wildcard TDM400P REV H Board 1”

1 WCTDM/0/0 FXOKS
2 WCTDM/0/1
3 WCTDM/0/2
4 WCTDM/0/3 FXSKS

Before starting Asterix, I initialize the card drivers with:

modprobe -v wcfxs
modprobe -v wcfxo

vorfalak:~ # ztcfg -vv

Zaptel Configuration

Channel map:

Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)

2 channels configured.

dmesg:

zaptel: unsupported module, tainting kernel.
Zapata Telephony Interface Registered on major 196
wcfxs: unsupported module, tainting kernel.
PCI: Found IRQ 9 for device 0000:01:07.0
PCI: Sharing IRQ 9 with 0000:00:01.0
PCI: Sharing IRQ 9 with 0000:01:0b.0
Freshmaker version: 73
Freshmaker passed register test
ProSLIC 3210 version 2 is too old
Module 0: Not installed
Module 1: Not installed
Module 2: Not installed
Module 3: Installed – AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV H (4 modules)
Registered tone zone 0 (United States / North America)
wcfxo: unsupported module, tainting kernel.
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)
Freed a Wildcard
Zapata Telephony Interface Unloaded
zaptel: unsupported module, tainting kernel.
Zapata Telephony Interface Registered on major 196
wcfxs: unsupported module, tainting kernel.
PCI: Found IRQ 9 for device 0000:01:07.0
PCI: Sharing IRQ 9 with 0000:00:01.0
PCI: Sharing IRQ 9 with 0000:01:0b.0
Freshmaker version: 73
Freshmaker passed register test
ProSLIC 3210 version 2 is too old
Module 0: Not installed
Module 1: Not installed
Module 2: Not installed
Module 3: Installed – AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV H (4 modules)
Registered tone zone 0 (United States / North America)
wcfxo: unsupported module, tainting kernel.
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)

I have the same probleme and when I launch zttool , my tdm card is shown as unconfigured.

dmesg :

Zapata Telephony Interface Registered on major 196
ACPI: PCI interrupt 0000:02:01.0[A] -> GSI 22 (level, low) -> IRQ 22
Freshmaker version: 73
Freshmaker passed register test
Module 0: Installed – AUTO FXO (FCC mode)
Module 1: Not installed
Module 2: Not installed
Module 3: Not installed
Found a Wildcard TDM: Wildcard TDM400P REV I (4 modules)

ztcfg :

Zaptel Configuration

Channel map:

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

1 channels configured.

I’ve noticed that when I reboot the server I can modprobe wctdm more easily. But I need a couple of minute for the TDM card iniate correctly.

Somebody have a new idea ? Is this a problem of driver so I could install the last one ? or anything else ?

I just bought a new Digium TDM400p but I got the following errors when the asterisk is starting up:

Oct 17 02:07:30 WARNING[3928]: chan_zap.c:778 zt_open: Unable to specify channel 1: No such device Oct 17 02:07:30 ERROR[3928]: chan_zap.c:6239 mkintf: Unable to open channel 1: No such device here = 0, tmp->channel = 1, channel = 1 Oct 17 02:07:30 ERROR[3928]: chan_zap.c:9191 setup_zap: Unable to register channel '1-2' Oct 17 02:07:30 WARNING[3928]: loader.c:345 ast_load_resource: chan_zap.so: load_module failed, returning -1 == Unregistered channel type 'Tor' == Unregistered channel type 'Zap' Oct 17 02:07:30 WARNING[3928]: loader.c:440 load_modules: Loading module chan_zap.so failed!

the following file is my configuration and logs, could anyone help me to solve this problem ?

dmesg

PCI: Found IRQ 11 for device 0000:01:09.0
PCI: Sharing IRQ 11 with 0000:00:1f.5
Freshmaker version: 73
Freshmaker passed register test
Module 0: Not installed
Module 1: Not installed
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV I (4 modules)
Registered tone zone 0 (United States / North America)
application asterisk uses obsolete OSS audio interface

/proc/zaptel/1

Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"

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

/etc/zaptel.conf


fxsks=1-2
defaultzone=us
loadzone=us

/etc/asterisk/zapata.conf


[trunkgroups]
faxdetect=incoming

[channels]
signalling=fxs_ks
echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.
echocancelwhenbridged=yes
echotraining=400 ; Asterisk trains to the beginning of the call, number is in mill
callerid=asreceived
group=1
context=default ; Points to the default context of your extensions.conf
channel => 1-2 ; Again X is the number of FXO modules you have