Problem with Dahdi and TDM400P

Hi to everyone, I have just installed Asterisk 1.6.1.1 with Dahdi 2.2.0 and Dahdi tools under Centos 5.3.
Under Asterisk I can’t see the dahdi channels and I can’t receive call.
Doing dahdi_hardware on command line I get this result:

[quote]dahdi_hardware
pci:0000:03:00.0 wctdm+ e159:0001 Wildcard TDM400P REV I
[/quote]

Doing dahdi_cfg -vv I get

[quote]dahdi_cfg -vv
DAHDI Tools Version - 2.2.0

DAHDI Version: 2.2.0.1
Echo Canceller(s):
Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)

2 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2[/quote]

Under /etc/dahdi/system.conf I have this entry:

[quote]fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2[/quote]

Under /etc/asterisk/chan_dahdi.conf I have:

[quote][trunkgroups]
;defin trunk groups

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800

context=incoming
signalling=fxs_ks
group=1
channel=>1

signalling=fxs_ks
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
group=1
context=incoming-fax
channel=>2
[/quote]

If I start asterisk get this:

[quote]CLI*>dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
Wildcard TDM400P REV I Board 5 OK 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)[/quote]

but it can’t see any channels:

[quote]*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State[/quote]

If I do module reload chan_dahdi.so I get this

[quote]*CLI> module reload chan_dahdi.so
*CLI> – Reloading module ‘chan_dahdi.so’ (DAHDI Telephony)
[Jul 10 00:42:03] ERROR[19572]: chan_dahdi.c:15044 setup_dahdi: Unable to load config chan_dahdi.conf[/quote]

Why I can’t reload the module chan_dahdi.so? Where is the error in chan_dadhi.conf?

Thank you very much for your help!!!

Hi to everyone, I soved my problem. I forgot to install the libpri. Once installed, all works with no problem.
I hope this post could be usefull for other users.

Thank you!