[asterisk-users] chan_dahdi.so fails to load : Inappropriate ioctl for device

Shaun Ruffell sruffell at digium.com
Wed Sep 2 11:03:51 CDT 2009


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



More information about the asterisk-users mailing list