Error when configuring zapata.conf

Hello,

Asterisk 1.2.3
Zaptel 1.2.2
Wildcard TDM400P REV I

Port 3 is fxo
Port 4 is fxs

I’ve had this working for a couple of months now with just the fxs module installed. I’ve now added the fxo module so i’ve added the following to the end of /etc/asterisk/zapata.conf

signalling=fxo_ks
channel => 3

When I restart asterisk I get an error saying:

Ouch … error while writing audio data: : Broken pipe
Junk at the beginning 49443303

I’ve seen a couple of things on the web saying use noload chan_oss.so but I already have that in my modules.conf file.

If I comment out the line channel => 3 asterisk loads but, obvously, I don’t have my channel 3 available.

ztcfg shows

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

2 channels configured.

Any ideas what’s causing this problem?

Thanks

Glenn

Post your zaptel.conf, zapata.conf, and the output of “ls /dev/zap”

As requested, thanks for your help.

Also added zapata_additional.conf as this is where I’m configuring channel 3.

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

channel 1, WCTDM, inactive.

channel 2, WCTDM, inactive.

fxoks=3
fxsks=4

Global data

loadzone = uk
defaultzone = uk


;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

; Additional lines added by Glenn Robinson - 14th Jan 2005
; based on recommendations from codepoets.co.uk/linux_asteri … ax_and_sip
switchtype=national
channel => 4

;Include genzaptelconf configs
; DO NOT USE zapata-auto.conf, channels and extensions are manually configured - G Robinson 1/4/2006
;#include zapata-auto.conf

;Include AMP configs
#include zapata_additional.conf


; zapata_additional.conf
;500
signalling=fxo_ks
channel => 3


ls -l /dev/zap/
total 0
crw-rw---- 1 asterisk asterisk 196, 1 Apr 1 13:21 1
crw-rw---- 1 asterisk asterisk 196, 2 Apr 1 13:21 2
crw-rw---- 1 asterisk asterisk 196, 3 Apr 1 13:21 3
crw-rw---- 1 asterisk asterisk 196, 4 Apr 1 13:21 4
crw-rw---- 1 asterisk asterisk 196, 254 Apr 1 13:21 channel
crw-rw---- 1 asterisk asterisk 196, 0 Apr 1 13:21 ctl
crw-rw---- 1 asterisk asterisk 196, 255 Apr 1 13:21 pseudo
crw-rw---- 1 asterisk asterisk 196, 253 Apr 1 13:21 timer