Yet another Unable to create channel of type Zap

Hi,
I have TDM400 card, 2 FXO, 2 FXS modules
I can ring the analog phones conected to the tdm card, but I cannot dial any outside numbers. I get:
WARNING[3307]: app_dial.c:1257 dial_exec_full: Unable to create channel of type ‘Zap’ (cause 0 - Unknown)

But if the zap channel wasn’t compiled how come I can dial the phones using the zap channels??

I’m using * 1.4.23-rc1, also tried with 1.4.22(with 1.4.22 I couldn’t ring the phones), latest zapata-1.4 from svn

I built * with ./configure --with-zaptel=/usr/src/zaptel-1.4/ after compiling, starting and checking if zapata was loaded.

deni*CLI> show channeltypes
Type Description Devicestate Indications Transfer


Zap DAHDI Telephony Driver no yes no

zaptel.conf:
defaultzone = hu
fxsks=1
fxsks=2
fxoks=3
fxoks=4

zapata.conf:
[trunkgroups]
; define any trunk groups

[channels]
; hardware channels
; default
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
immediate=no
callgroup=1
pickupgroup=1

; define channels
context=phones ; Uses the [internal] context in extensions.conf
signalling=fxs_ks ; Uses FXO signalling for an FXS channel
channel => 1 ; Telephone attached to port 1

context=phones
signalling=fxs_ks
channel => 2

context=phones
signalling=fxo_ks
channel => 3

context=phones
signalling=fxo_ks
channel => 4

I also checked menuselect.makeopts file and I coundn’t find anything related to the zap chennels. So zapata is detected by the configure script.