DAHDI 3.0.0 未分配跨度且无法生成配置

DAHDI 3.0.0 未分配跨度且无法生成配置

我正在设置 Debian 10、Asterisk 16 和 DAHDI 3.0.0 的全新安装。我指定了 Digium TDM410P 4 端口模拟卡 (PSTN),并尝试使用 asterisk 和 dahdi 对其进行配置。不幸的是,我的卡可以从操作系统和 dahdi_hardware 检测到,但在 span-assignments 和 dahdi_scan 上看不到它,所以我无法配置通道和端口!

这有什么问题?

我尝试重新安装 dahdi、模块、Asterisk 甚至 Debian,但仍然无法找出问题所在。

# 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- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64 (16000ns min, 32000ns max), Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 5
        Region 0: I/O ports at de00 [size=256]
        Region 1: Memory at fdbff000 (32-bit, non-prefetchable) [size=1K]
        [virtual] Expansion ROM at fde00000 [disabled] [size=128K]
        Capabilities: [c0] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=100mA  PME(D0+,D1+,D2+,D3hot+,D3cold+)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
# 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

答案1

尽管 TDM410 和 TDM800 不再受“支持”,但可以使它们发挥作用,帮助您摆脱困境。

警告:您需要独自获得支持。

这里的示例使用 DAHDI 3.1.0,因为我也遇到了同样的麻烦。dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/wctdm24xxp/base.c在我的例子中,在文件中重新添加了 TDM410 和 TDM800 的 PCI 设备。

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 }
};

相关内容