[Home]

Summary:DAHLIN-00325: Error when starting DAHDI
Reporter:André Emerich (aemerich)Labels:
Date Opened:2013-07-30 13:41:15Date Closed:2013-07-30 17:07:21
Priority:MajorRegression?
Status:Closed/CompleteComponents:dahdi (the module) wcte12xp
Versions:2.7.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Cent OS 6.2 x64 + DAHDI Complete 2.7Attachments:
Description:I got this error when try to start the DAHDI.

"Loading DAHDI hardware modules:
 wcte12xp:                                                [  OK  ]

Running dahdi_cfg:                                         [  OK  ]
Missing '/sys/bus/astribanks/drivers/xppdrv/sync'"

In this forum (http://blogs.digium.com/2012/11/05/how-to-install-asterisk-11-on-centos-6/) was commented by a Digium Technical Marketing Specialist that It could be a bug.

I tried to reinstall the DAHDI module, but no sucess.
Comments:By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 14:09:50.304-0500

This is a mis-configuration of dahdi somehow. The last "missing" line is a red herring. (I do agree that it is confusing, though)

What is the output of "lspci -d d161:* -v" ?
What is the output of "cat /etc/dahdi/modules" ?

By: André Emerich (aemerich) 2013-07-30 14:13:30.777-0500

Russ,

The output of "lspci -d d161:* -v":
03:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
Subsystem: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express)
Flags: bus master, medium devsel, latency 64, IRQ 16
I/O ports at dc00 [size=256]
Memory at fe6ffc00 (32-bit, non-prefetchable) [size=1K]
Expansion ROM at fe700000 [disabled] [size=128K]
Capabilities: [c0] Power Management version 2
Kernel driver in use: wcte12xp
Kernel modules: wcte12xp

The output of "cat /etc/dahdi/modules":
wcte12xp

Regards

By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 14:27:20.738-0500

After starting the service, what is the output of "dahdi_scan" ?

By: André Emerich (aemerich) 2013-07-30 14:31:23.201-0500

Follow:

dahdi_scan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121
location=PCI Bus 03 Slot 09
basechan=1
totchans=31
irq=0
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=
framing=CAS

--

dahdi_cfg -vvvvv
DAHDI Tools Version - 2.7.0

DAHDI Version: 2.7.0
Echo Canceller(s):
Configuration
======================


Channel map:


0 channels to configure.

By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 14:35:24.880-0500

Your /etc/dahdi/system.conf appears to be empty.
Try running "dahdi_genconf system" to generate a template configuration. Change /etc/dahdi/system.conf to your own personal settings, then rerun "dahdi_cfg"

By: André Emerich (aemerich) 2013-07-30 14:43:02.374-0500

I ran just "dahdi_genconf" before..
Now, I ran "dahdi_genconf system" and it set up the /etc/dahdi/system.conf.

After running the dahdi_cfg:

dahdi_cfg -vvvvvvvvv
DAHDI Tools Version - 2.7.0

DAHDI Version: 2.7.0
Echo Canceller(s): MG2
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 08)
Channel 09: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 11)
Channel 12: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 12)
Channel 13: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 13)
Channel 14: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 14)
Channel 15: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 15)
Channel 16: D-channel (Default) (Echo Canceler: none) (Slaves: 16)
Channel 17: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 17)
Channel 18: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 18)
Channel 19: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 19)
Channel 20: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 20)
Channel 21: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 21)
Channel 22: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 22)
Channel 23: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 23)
Channel 24: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 24)
Channel 25: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 25)
Channel 26: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 26)
Channel 27: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 27)
Channel 28: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 28)
Channel 29: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 29)
Channel 30: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 30)
Channel 31: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 31)

31 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to none
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2

But I can't start dahdi module yet..

/etc/init.d/dahdi start
Loading DAHDI hardware modules:
 wcte12xp:                                                [  OK  ]

Running dahdi_cfg:                                         [  OK  ]
Missing '/sys/bus/astribanks/drivers/xppdrv/sync'

By: André Emerich (aemerich) 2013-07-30 16:38:31.718-0500

I've done the downgrade to DAHDI 2.6 and the error has gone away.

By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 16:50:48.700-0500

For public info:

Missing '/sys/bus/astribanks/drivers/xppdrv/sync'

This message appears on dahdi load when using the init script after using "dahdi_genconf modules" to purge /etc/dahdi/modules of devices that you do not have (xpp specifically). Do not worry about this message if you see it on dahdi initialization.

By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 16:52:16.136-0500

André,
That last dahdi_cfg looked like it setup your E1 line properly. Are you sure that it wasn't working after that last load of dahdi 2.7?

By: André Emerich (aemerich) 2013-07-30 17:02:39.011-0500

Russ,
It should be.

The problem was that I didn't run this "sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config" on my Cent OS.
So, the Asterisk was stopping at inicialization with this error: "Failed to open /dev/dahdi/transcode"

So I bound that Dahdi error with the Asterisk inicialization problem.

After run the command "sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config" the Asterisk starts normally.

Thank you for your support.


By: Russ Meyerriecks (rmeyerriecks) 2013-07-30 17:07:21.495-0500

Thanks for opening this issues. I'll look into removing that xpp message if the module isn't needed.