Error while dahdi show channels

Hi,
I have installed asterisknow1.5.0 and digium tdm400p card.

my dahdi_cfg -vvv shows

[root@localhost ~]# dahdi_cfg -vvvv
DAHDI Tools Version - 2.1.0.2

DAHDI Version: 2.1.0.4
Echo Canceller(s): MG2
Configuration

Channel map:

Channel 01: FXO Loopstart (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

But dahdi show channels in * cli gives error.

localhost*CLI> dahdi show channels
No such command ‘dahdi show channels’ (type ‘help dahdi show’ for other possible commands)

Can anyone tell me why i get this problem?

My Details follows

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 2009 i686 i686 i386 GNU/Linux
[root@localhost ~]# asterisk -r
Asterisk 1.6.0.9, Copyright © 1999 - 2008 Digium, Inc. and others.
[root@localhost ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV I Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV I
location=PCI Bus 03 Slot 02
basechan=1
totchans=4
irq=50
type=analog
port=1,FXS
port=2,FXO
port=3,none
port=4,none
[2]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: RTC) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=5
totchans=0
irq=0
[root@localhost ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV I Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV I
location=PCI Bus 03 Slot 02
basechan=1
totchans=4
irq=50
type=analog
port=1,FXS
port=2,FXO
port=3,none
port=4,none
[2]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: RTC) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=5
totchans=0
irq=0
[root@localhost ~]# cat /proc/dahdi/1
Span 1: WCTDM/4 “Wildcard TDM400P REV I Board 5” (MASTER)

   1 WCTDM/4/0 FXOLS  (EC: MG2) 
   2 WCTDM/4/1 FXSKS (In use) RED (EC: MG2) 
   3 WCTDM/4/2 
   4 WCTDM/4/3 

[root@localhost ~]# cat /proc/interrupts
CPU0 CPU1
0: 1175873 1227529 IO-APIC-edge timer
1: 6 3 IO-APIC-edge i8042
6: 5 1 IO-APIC-edge floppy
7: 0 0 IO-APIC-edge parport0
8: 2409774 4722 IO-APIC-edge rtc
9: 0 1 IO-APIC-level acpi
12: 47 56 IO-APIC-edge i8042
50: 4623 2353390 IO-APIC-level wctdm
169: 50 49 IO-APIC-level uhci_hcd:usb5, HDA Intel
209: 0 0 IO-APIC-level uhci_hcd:usb4
217: 0 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2
225: 3328 12728 IO-APIC-level uhci_hcd:usb3, ata_piix
233: 49 21426 PCI-MSI eth0
NMI: 0 0
LOC: 2403298 2403315
ERR: 0
MIS: 0
[root@localhost ~]#

and my freepbx is 2.5.1-1

There is probably something misconfigured in your chan_dahdi.conf file (or zapata.conf if your still using that). I just ran into this recently and it had me stumped for a couple of hours until I realized I had some channels misconfigured.