Line 0: Unable to open master device '/dev/dahdi/ctl'

Hi,

I have the following configuration
Asterisk 1.4.22
FreePBX 2.6.0.beta2.2
dahdi-linux-2.1.0
Wildcard TE210P dual-span T1/E1/J1 card 3.3V (rev 02)

The system was configured and running fine.
It was rebooted because the FreePBX console was showing CPU utilization of 100 % but the top utility on the server was showing the 3% utilization.

Clearly for some reason the FreePBX was out of sync so I rebooted the machine.

After the reboot , the T1 line is not coming up.

When I type _dahdi_cfg I get the following response.

[root@cbusivr asterisk]# dahdi_cfg
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device ‘/dev/dahdi/ctl’

1 error(s) detected

[root@cbusivr asterisk]# dahdi_scan
Unable to open /dev/dahdi/ctl: No such file or directory
[root@cbusivr asterisk]# dahdi_hardware
pci:0000:0a:03.0 wct4xxp- d161:0210 Wildcard TE210P (4th Gen)
[root@cbusivr asterisk]# modinfo wct4xxp-
modinfo: could not find module wct4xxp-

Appreciate any help.

Regards,

please check:

  1. IRQ.
  2. dmesg show the drivers
  3. 50rules has such dir under /etc/udev/rule.d

Hi James ,

  1. The IRQ are not conflicting: No new hardware was added between reboots.
    Anyway I have listed the lspci out below
    [root@cbusivr ~]# lspci
    00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 09)
    00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 09)
    00:04.0 PCI bridge: Intel Corporation E7525/E7520 PCI Express Port B (rev 09)
    00:05.0 PCI bridge: Intel Corporation E7520 PCI Express Port B1 (rev 09)
    00:06.0 PCI bridge: Intel Corporation E7520 PCI Express Port C (rev 09)
    00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
    00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
    01:00.0 PCI bridge: Intel Corporation 80332 [Dobson] I/O processor (A-Segment Bridge) (rev 06)
    01:00.2 PCI bridge: Intel Corporation 80332 [Dobson] I/O processor (B-Segment Bridge) (rev 06)
    02:0e.0 RAID bus controller: Dell PowerEdge Expandable RAID controller 4 (rev 06)
    05:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
    05:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
    06:07.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller (rev 05)
    07:08.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller (rev 05)
    08:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
    08:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
    09:04.0 I2O: LSI Logic / Symbios Logic MegaRAID (rev 01)
    0a:02.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
    0a:03.0 Communication controller: Digium, Inc. Wildcard TE210P dual-span T1/E1/J1 card 3.3V (rev 02)
    0b:05.0 Class ff00: Dell Remote Access Card 4 Daughter Card
    0b:05.1 Class ff00: Dell Remote Access Card 4 Daughter Card Virtual UART
    0b:05.2 Class ff00: Dell Remote Access Card 4 Daughter Card SMIC interface
    0b:06.0 IDE interface: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02)
    0b:0d.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]

  2. dmesg does not show the drivers loaded and when I type
    service dahdi restart it gives the error I originally mentioned.

  3. The /etc/udev/rules.d/dahdi.rules has this in the file

udev rules to generate the /dev/dahdi device files (if not yet provided

by your distribution):

KERNEL==“dahdictl”, NAME="dahdi/ctl"
KERNEL==“dahditranscode”, NAME="dahdi/transcode"
KERNEL==“dahditimer”, NAME="dahdi/timer"
KERNEL==“dahdichannel”, NAME="dahdi/channel"
KERNEL==“dahdipseudo”, NAME="dahdi/pseudo"
KERNEL==“dahdi[0-9]*”, NAME=“dahdi/%n”

DAHDI devices with ownership/permissions for running as non-root

SUBSYSTEM==“dahdi”, OWNER=“asterisk”, GROUP=“asterisk”, MODE=“0660”

Still cant figure out the problem from this data and what needs to be done.

My guess is something was started manually and got wiped out during reboot and I cant figure how to reconfigure and start this card again.

Appreciate your help.
Thanks,

Just an update:

I did some googling and found the commands to see if the channels were and modules were loaded. The dadhi module was giving an error when loaded. So I rebuilt the dahdi driver and reloaded and reconfigured the card as a fresh install and it worked.

When this happened a second time I ran the following commands.

amportal restart
service dahdi restart

May this will help someone running into this again.

Regards,
Irfan

make sure dahdi_cfg -vvvvvvvvv// without any error

I would add to that I have seen the FreePBX cpu utilization @ 00% and learned to disregard it. That’s a GUI on the system; top is much more relevant. I have an Elastix system running for 130+ days right now @ 15k calls a week (half or more recorded) and it shows that in FreePBX, in the Elastix GUI it does not, nor does top show anything other than normal (.09-.5 spikes).

I would really disregard that in the future, nonetheless good to know you found the issue and were able to recompile dahdi without issues.

-Jake
www.voipcitadel.com