herb at cfht.hawaii.edu
2009-Sep-01 22:41 UTC
[asterisk-users] chan_dahdi.so fails to load : 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 fine. Debian 4 w/ 2.6.28 kernel. 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 manufacturerdevicetype=DAHDI Dummy Timing locationbasechan=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
herb at cfht.hawaii.edu
2009-Sep-01 23:16 UTC
[asterisk-users] chan_dahdi.so fails to load : Inappropriate ioctl for device
Forgot to include this info in my first post. # cat /proc/dahdi/* Span 1: WCTDM/0 "Wildcard AEX410 Board 1" (MASTER) IRQ misses: 1 1 WCTDM/0/0 FXSKS RED 2 WCTDM/0/1 FXSKS RED 3 WCTDM/0/2 FXOKS 4 WCTDM/0/3 FXOKS I don't have the analog lines attached to the card yet, hence the RED alarms. Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" Thanks, Herb
Shaun Ruffell
2009-Sep-02 16:03 UTC
[asterisk-users] chan_dahdi.so fails to load : Inappropriate ioctl for device
herb at cfht.hawaii.edu wrote:> 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 fine. > > Debian 4 w/ 2.6.28 kernel. 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' ><snip>> > 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 > =====================I think you are correct and that this is your problem. If you have dahdi-tools 2.2.0 installed, but using and older version of dahdi-linux, you will get these errors since the format of some of the ioctls have changed. (related to https://issues.asterisk.org/view.php?id=14499) How did you install dahdi-linux? -- Shaun Ruffell Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org