Dahdi_genconf Fails With “Empty Configuration – No Spans”
Hello,
I just installed a Debian Jessie box from scratch which sports a Digium TE435 digital card.
I installed the software, built and loaded the kernel modules:
# dpkg -l|grep dahdi ii asterisk-dahdi 1:11.13.1~dfsg-2+b1 amd64 DAHDI devices support for the Asterisk PBX
ii dahdi 1:2.10.0.1-1 amd64 utilities for using the DAHDI kernel modules ii dahdi-linux 1:2.10.0.1~dfsg-1 all DAHDI telephony interface – Linux userspace parts ii dahdi-modules-3.16.0-4-amd64:amd64 1:2.10.0.1~dfsg-1+3.16.7-ckt2-1 amd64 DAHDI modules for Linux (kernel 3.16.0-4-amd64)
ii dahdi-source 1:2.10.0.1~dfsg-1 all DAHDI telephony interface – source code for kernel driver
# dahdi_hardware pci:0000:0a:00.0 wcte43x+ d161:800e Wildcard TE435/235
# lsmod|grep -E ‘dahdi|wct’
wcte43x 56864 0
oct612x 162715 1 wcte43x dahdi 212318 2 oct612x,wcte43x crc_ccitt 12347 1 dahdi
However, dahdi_genconf keeps finding no span:
# dahdi_genconf -vvv Default parameters from /etc/dahdi/genconf_parameters Empty configuration — no spans Generating /etc/dahdi/assigned-spans.conf Empty configuration — no spans Generating /etc/dahdi/system.conf Empty configuration — no spans Generating /etc/asterisk/dahdi-channels.conf
What am i missing?
Thank you,
5 thoughts on - Dahdi_genconf Fails With “Empty Configuration – No Spans”
It looks like your driver is loaded correctly. My guess would be maybe the dahdi-tools is packaged as an older version that doesn’t know about the newer te435 card. You could hand craft the config file using the info in the card’s manual http://www.digium.com/sites/digium/files/quad-span-digital-card-user-manual.pdf
or you could try compiling from source. https://wiki.asterisk.org/wiki/display/DAHDI/Quick+Start+From+Source
Also, you could give Digium support a call. That would probably be your quickest path to resolution.
The error is “no spans”.
What is the output of:
dahdi_span_assignment list
# /usr/sbin/dahdi_span_assignments list
1:-:- [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
2:-:- [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
3:-:- [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
4:-:- [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
Interesting. Does the files /etc/dahdi/assigned-spans.conf exist?
Anyway, try:
dahdi_span_assignments auto
dahdi_genconf
Yes, it is:
$ ls -l /etc/dahdi/assigned-spans.conf*
-rw-r–r– 1 root root 428 Jan 14 17:47 /etc/dahdi/assigned-spans.conf
-rw-r–r– 1 root root 428 Jan 14 17:47 /etc/dahdi/assigned-spans.conf.bak
$ cat /etc/dahdi/assigned-spans.conf
#
# Autogenerated by /usr/sbin/dahdi_span_assignments on Wed 14 Jan 17:47:29 CET 2015
# Map devices + local spans to span + base channel number
# Device: [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
# Skipped unassigned local span 1
# Skipped unassigned local span 2
# Skipped unassigned local span 3
# Skipped unassigned local span 4
$ sudo dahdi_span_assignments -v auto auto-assign /sys/bus/dahdi_devices/devices/pci:0000:0a:00.0
$ sudo dahdi_genconf -v Default parameters from /etc/dahdi/genconf_parameters Generating /etc/dahdi/assigned-spans.conf Generating /etc/dahdi/system.conf Generating /etc/asterisk/dahdi-channels.conf
This seems to do the trick.
Did something gone wrong during the package installation? This could be investigated by reinstalling from scratch is this could be of any help.
$ cat /etc/dahdi/assigned-spans.conf
#
# Autogenerated by /usr/sbin/dahdi_span_assignments on Sat 17 Jan 16:08:48 CET 2015
# Map devices + local spans to span + base channel number
# Device: [1TE435F_-_DM06134700043_-_A_-_20131202] @PCI_Bus_10_Slot_01 /sys/devices/pci0000:00/0000:00:1c.0/0000:0a:00.0/pci:0000:0a:00.0
1TE435F_-_DM06134700043_-_A_-_20131202 1:1:1
1TE435F_-_DM06134700043_-_A_-_20131202 2:2:25
1TE435F_-_DM06134700043_-_A_-_20131202 3:3:49
1TE435F_-_DM06134700043_-_A_-_20131202 4:4:73
$ cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Sat Jan 17 16:08:48 2015
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTE4/0/1 “WCTE43X (PCI) Card 0 Span 1” (MASTER)
span=1,1,0,esf,b8zs
# termtype: te bchan=1-23
dchan$
echocanceller=oslec,1-23
# Span 2: WCTE4/0/2 “WCTE43X (PCI) Card 0 Span 2”
span=2,2,0,esf,b8zs
# termtype: te bchan%-47
dchanH
echocanceller=oslec,25-47
# Span 3: WCTE4/0/3 “WCTE43X (PCI) Card 0 Span 3”
span=3,3,0,esf,b8zs
# termtype: te bchanI-71
dchanr echocanceller=oslec,49-71
# Span 4: WCTE4/0/4 “WCTE43X (PCI) Card 0 Span 4”
span=4,4,0,esf,b8zs
# termtype: te bchans-95
dchan