dahdi_enable_ec: Unable to enable echo cancellation

I just build a new Asterisk server. I am using Asterisk 1.4.29 and Dahdi 2.2.1 with a Digum TDM400P (4FXO Modules). The OS is Centos 5.4.

When I dial out through the PSTN line there are always echos. And the CLI shows:

[quote][Feb 28 11:58:28] WARNING[4424]: chan_dahdi.c:1780 dahdi_enable_ec: Unable to enable echo cancellation on channel 4 (No such device)
[Feb 28 11:58:28] WARNING[4424]: chan_dahdi.c:1798 dahdi_train_ec: Unable to request echo training on channel 4: Invalid argument
[Feb 28 11:58:31] WARNING[4424]: chan_dahdi.c:1780 dahdi_enable_ec: Unable to enable echo cancellation on channel 4 (No such device)
[/quote]

Here is me /etc/asterisk/chan_dahdi.conf

[root@sip asterisk]# cat chan_dahdi.conf
[trunkgroups]

[channels]
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=3.0
callgroup=1
pickupgroup=1
immediate=no

; Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=6040000000
group=0
context=from-Nortel
channel => 1

; Span 2: WCTDM/0 "Wildcard TDM400P REV I Board 1"
;;; line="2 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=6040000000
group=0
context=from-Nortel
channel => 2

; Span 3: WCTDM/0 "Wildcard TDM400P REV I Board 1"
;;; line="3 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=6040000000
group=0
context=from-Nortel
channel => 3

; Span 4: WCTDM/0 "Wildcard TDM400P REV I Board 1"
;;; line="4 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=604000000
group=1
context=from-Nortel
channel => 4

Do I need re-compile Dahdi? How can I enable echo can?

Please help.

Thanks!!

After watching Canada wining hockey Gold, I suddenly realized I missed config in /etc/dahdi/system.conf :wink:

So now the echo can module loaded. I need more test to tune the echo down.