Summary:ASTERISK-13118: "Failed to open /dev/dahdi/transcode: No such file or directory" after "asterisk -U asterisk -G asterisk -cvv"
Reporter:Olivier Krief (okrief)Labels:
Date Opened:2008-11-25 01:43:47.000-0600Date Closed:2011-06-07 14:07:58
Versions:Frequency of
Description:After compiling asterisk-, libpri-1.4.7 and dahdi-linux-complete-2.0.0+2.0.0 , I got in console (after asterisk -U asterisk -G asterisk -cvv) :
== Parsing '/etc/asterisk/codecs.conf':   == Found
[Nov 25 08:35:18] ERROR[25144]: codec_dahdi.c:399 find_transcoders: Failed to open /dev/dahdi/transcode: No such file or directory

# ls /dev/dahdi
channel  ctl  pseudo  timer

I got the same message with 2.1.0-rc3.
Asterisk is configured with output of "make samples" except a single edition in asterisk.conf to allow running asterisk as non-root.
Comments:By: Shaun Ruffell (sruffell) 2008-11-25 12:28:14.000-0600

It doesn't look like wctc4xxp driver is loaded.  Is wctc4xxp in /etc/dahdi/modules?  Does it show up in a call to lsmod?

By: Olivier Krief (okrief) 2008-11-26 01:38:40.000-0600

I don't have any dahdi hardware installed in this box.
No such wctc4xxp driver seems to be present :

# lsmod
Module                  Size  Used by
ppdev                   8676  0
lp                     11012  0
button                  6672  0
ac                      5188  0
battery                 9636  0
ipv6                  226016  49
tun                    10336  1
dahdi_dummy             5224  0
xpp_usb                17256  0
xpp                   131680  1 xpp_usb
xfrm4_mode_tunnel       2816  2
wctdm                  35724  0
wcfxo                  11904  0
wctdm24xxp            111872  0
wcte11xp               22848  0
wct1xxp                13440  0
wcte12xp               61984  0
wct4xxp               294624  0
firmware_class          9600  3 wctdm24xxp,wcte12xp,wct4xxp
dahdi                 186216  11 dahdi_dummy,xpp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,wct4xxp
crc_ccitt               2240  1 dahdi

# cat /etc/dahdi/modules
# Contains the list of modules to be loaded / unloaded by /etc/init.d/dahdi.
# NOTE:  Please add/edit /etc/modprobe.d/dahdi or /etc/modprobe.conf if you
#        would like to add any module parameters.
# Format of this file: list of modules, each in its own line.
# Anything after a '#' is ignore, likewise trailing and leading
# whitespaces and empty lines.

# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
# Digium TE220: PCI-Express dual-port T1/E1/J1
# Digium TE420: PCI-Express quad-port T1/E1/J1

# Digium TE120P: PCI single-port T1/E1/J1
# Digium TE121: PCI-Express single-port T1/E1/J1
# Digium TE122: PCI single-port T1/E1/J1

# Digium T100P: PCI single-port T1
# Digium E100P: PCI single-port E1

# Digium TE110P: PCI single-port T1/E1/J1

# Digium TDM2400P/AEX2400: up to 24 analog ports
# Digium TDM800P/AEX800: up to 8 analog ports
# Digium TDM410P/AEX410: up to 4 analog ports

# X100P - Single port FXO interface
# X101P - Single port FXO interface

# Digium TDM400P: up to 4 analog ports

# Digium B410P: 4 NT/TE BRI ports

# Xorcom Astribank Devices

By: Shaun Ruffell (sruffell) 2008-11-26 12:01:37.000-0600

Then the immediate solution to your issue is to add

noload => codec_dahdi.so

to /etc/asterisk/modules.conf

Since you do not have any DAHDI hardware.  On a similar related note, you might want to comment out all the drivers in /etc/dahdi/modules.  If you don't have the hardware, no need to load all those modules.  You should just be left with dahdi_dummy.