chan_dahdi.so fails : Inappropriate ioctl for device

Aloha,

I’m not sure why I’m getting this error, but I can’t seem to get chan_dahdi to load. SIP & IAX2 are working no problem.

Asterisk 1.6.1.5, dahdi-linux 2.2.0.2, dahdi-tools-2.2.0

CLI> module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command ‘module load chan_dahdi.so’ failed.
[Sep 1 10:57:51] WARNING[31696]: pbx.c:4550 ast_register_application2: Already have an application ‘DAHDISendKeypadFacility’
[Sep 1 10:57:51] ERROR[31696]: chan_dahdi.c:8786 mkintf: Unable to get parameters: Inappropriate ioctl for device
[Sep 1 10:57:51] ERROR[31696]: chan_dahdi.c:14170 build_channels: Unable to register channel ‘1’

dahdi_scan

[1]
active=yes
alarms=OK
description=Wildcard AEX410 Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard AEX410 with VPMADT032
location=PCI Express Bus 11 Slot 09
basechan=1
totchans=4
irq=16
[2]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: HRtimer) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=5
totchans=0
irq=0

Note, I have compiled DAHDI 2.2.0.2 but it still shows 2.1.0.4 in the tool. Version bug? If it should say 2.2.0.2, then that could be my problem. But how do I correct that?

dahdi_cfg -vvv

DAHDI Tools Version - 2.2.0

DAHDI Version: 2.1.0.4
Echo Canceller(s):
Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none

I have looked up everything I can about this problem, and nothing has lead me to a solution. Any help would be great appreciated.

Thanks,
Herb

With some help from the users mailing list, I figured out the problem, and yes it’s related to the old version of dahdi-linux.

Not sure if it’s my machine or the install script, but it kept linking to the old modules in modules.dep.

I had to move the old modules directory out of /lib/modules/ in order for the install script to link to the new modules.