Skip to content

Instantly share code, notes, and snippets.

@theodric
Created December 24, 2024 01:46
Show Gist options
  • Save theodric/d039b7690f38503676f705a59eee1b6c to your computer and use it in GitHub Desktop.
Save theodric/d039b7690f38503676f705a59eee1b6c to your computer and use it in GitHub Desktop.
asterisk & dahdi with tdm410
From: https://serverfault.com/questions/978738/dahdi-3-0-0-not-assign-spans-and-cannot-generate-configuration/989462#989462
site logo
Skip to main content
Server Fault
DAHDI 3.0.0 not assign spans and cannot generate configuration
Asked 5 years, 4 months ago
Modified 2 years, 3 months ago
Viewed 2k times
0
I'm setting up a new fresh installation of Debian 10, Asterisk 16 and DAHDI 3.0.0. I have specific the Digium TDM410P 4 port analog card (PSTN) and trying to configure it with asterisk and dahdi. Unfortunately my card is detected from operating system and dahdi_hardware but cannot see it on span-assignments and dahdi_scan, so i can't configure channels and ports!
What wrong with this?
I try it to reinstall dahdi, modules, Asterisk even Debian but I still have not been able to figure out the problem.
lspci 02:06.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
lspci -vvv 02:06.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11) Subsystem: Digium, Inc. Wildcard TDM410 4-port analog card Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR-
dahdi_hardware pci:0000:02:06.0 wctdm24xxp- d161:8005 Wildcard TDM410P
dahdi_scan "No output here, nothing"
dahdi_genconf -vvvvv 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
dahdi_cfg -vvvvv DAHDI Tools Version - 3.1.0-rc1
DAHDI Version: 3.1.0-rc1 Echo Canceller(s):
Configuration Channel map:
0 channels to configure.
/etc/init.d/dahdi start Loading DAHDI hardware modules: wctdm24xxp: done /usr/share/dahdi/waitfor_xpds: 106: /usr/share/dahdi/waitfor_xpds: astribank_is_starting: not found using '/etc/dahdi/assigned-spans.conf' Running dahdi_cfg: done.
cat /etc/dahdi/assigned-spans.conf Autogenerated by /usr/sbin/dahdi_span_assignments on Sun 04 Aug 2019 10:07:50 PM EEST Map devices + local spans to span + base channel number
debianasterisk
Share
Improve this question
Follow
asked Aug 10, 2019 at 21:16
Geørge Tømzaridis's user avatar
Geørge Tømzaridis
122 bronze badges
Add a comment
2 Answers
Sorted by:
1
Although the TDM410 and the TDM800 are no longer 'supported' they can be made to work to get yourself out of a mess.
Warning: You're on your own with support.
The example here is using DAHDI 3.1.0 as I found myself in the same mess.
In file dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/wctdm24xxp/base.c add back in the PCI devices for the TDM410 and the TDM800 in my case.
static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = {
{ 0xd161, 0x2400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm2400 },
**{ 0xd161, 0x0800, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm800 },**
{ 0xd161, 0x8002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex800 },
{ 0xd161, 0x8003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex2400 },
**{ 0xd161, 0x8005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm410 },**
{ 0xd161, 0x8006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex410 },
{ 0xd161, 0x8007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcha80000 },
{ 0xd161, 0x8008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wchb80000 },
{ 0 }
};
Share
Improve this answer
Follow
edited Oct 26, 2019 at 6:28
RalfFriedl's user avatar
RalfFriedl
3,19844 gold badges1414 silver badges1717 bronze badges
answered Oct 26, 2019 at 3:41
Alec Davis's user avatar
Alec Davis
1122 bronze badges
Add a comment
0
Well, now '22 same thing upgrading my home Asterisk 11/DAHDI 2.11 Centos7 box to Asterisk 18.4 / DAHDI 3.2.
DAHDI seems not to build anymore. Fedora 36, Centos Stream, OpenSuse Leap 15.4 fails on new kernel like 5.19
On Centos7 Kernel 3.10 it builds ok but dahdi_cfg fails for TDM800P Cards:
Empty configuration -- no spans
and as described in https://serverfault.com/a/989462/984790
On DAHDI 2.7 dahdi-linux-complete-2.7_2.7.0/linux/drivers/dahdi/wctdm24xxp/base.c we have at line #6071
static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = {
{ 0xd161, 0x2400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm2400 },
{ 0xd161, 0x0800, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm800 },
{ 0xd161, 0x8002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex800 },
{ 0xd161, 0x8003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex2400 },
{ 0xd161, 0x8005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm410 },
{ 0xd161, 0x8006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex410 },
{ 0xd161, 0x8007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcha80000 },
{ 0xd161, 0x8008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wchb80000 },
{ 0 }
};
and in dahdi 3.2 at line #6035 of base.c
static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = {
{ 0xd161, 0x2400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm2400 },
{ 0xd161, 0x8003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex2400 },
{ 0xd161, 0x8007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcha80000 },
{ 0xd161, 0x8008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wchb80000 },
{ 0 }
};
bringing back the device table from 2.7 o 3.2 it builds ok.
Share
Improve this answer
Follow
answered Sep 18, 2022 at 19:54
arfneto's user avatar
arfneto
101
Add a comment
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
debianasterisk
.
The Overflow Blog
This developer tool is 40 years old: can it be improved?
Can a programming language implement time travel?
Featured on Meta
The December 2024 Community Asks Sprint has been moved to March 2025 (and...
Stack Overflow Jobs is expanding to more countries
Related
4
PSTN Trunk TDM400P Install on Asterisk / Trixbox
1
Debian Squeeze and exim4: cannot send mail
0
Asterisk configuration for voicemail emails through GMail SMTP server not working
83
What does "debconf: delaying package configuration, since apt-utils is not installed" mean?
2
Configuration of a Cisco IP Phone 7916 and 7975g
2
Asterisk and SIP trunking, is this configuration possible?
1
Asterisk's "dialplan reload" and "help" commands are not found
1
Allow inbound and outbound calls on same asterisk (number not registered)
4
Debian: Cannot install php7.4-curl -- depends not installable
Hot Network Questions
Totient equation
Derive historical price of a corporate bond using current market quotes
How can I replace the anode rod with this in the way?
Is this a fake Realtek Wifi dongle?
Smallest arcseconds viewable by perfect conditions (i.e. space-based telescope)
Can the independence of a statement in ZFC itself be independent of ZFC?
Reference request for an Einstein quote
What are the legal consequences of publishing in massacre denial or hate speech according to paragraph 130 (5)?
Triple-booting Windows NT 4.x/5.x, Windows 9x, and MS-DOS using NTLDR
multicols vs minipage for side-by-side purposes
How to read this old French speed gauge?
Was Adam given the benefit of the doubt?
DSolve gives 0 for wave equation with inhomogeneous term involving trigonometric function
What is the meaning of "meanwhile" in this context?
Squaring the circle (approximating, of course)
Can I use copyleft-licensed library in MIT-licensed project?
About min, min7 and min9 chords
Meaning of thing in "Addie is a very cheerful girl. That’s her thing."
Do relativistic propagators give probability amplitudes?
Numbering a carbon chain
How to differentiate coyote vs wolf tracks
QID 38909 SHA1 deprecated setting for SSH (RHEL 8.6)
Makefile for a tiny C++ project, follow-up 1
How to open a overfilled whipped cream dispenser that is stuck and can’t open lid
Question feed
Server Fault
Tour
Help
Chat
Contact
Feedback
Company
Stack Overflow
Teams
Advertising
Talent
About
Press
Legal
Privacy Policy
Terms of Service
Cookie Settings
Cookie Policy
Stack Exchange Network
Technology
Culture & recreation
Life & arts
Science
Professional
Business
API
Data
Blog
Facebook
Twitter
LinkedIn
Instagram
Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.12.20.20747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment