User Tools

Site Tools


плата_digium_tdm

This is an old revision of the document!


Плата Digium TDM

# lspci | grep -i tdm
01:0a.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)

# dmesg | grep 0000:01:0a.0
[    0.153287] pci 0000:01:0a.0: [d161:8005] type 00 class 0x020000
[    0.153304] pci 0000:01:0a.0: reg 0x10: [io  0xe800-0xe8ff]
[    0.153315] pci 0000:01:0a.0: reg 0x14: [mem 0xfbfffc00-0xfbffffff]
[    0.153355] pci 0000:01:0a.0: reg 0x30: [mem 0xfbfc0000-0xfbfdffff pref]
[    0.153388] pci 0000:01:0a.0: supports D1 D2
[    0.153390] pci 0000:01:0a.0: PME# supported from D0 D1 D2 D3hot D3cold


# apt install dahdi

# dahdi_hardware
pci:0000:01:0a.0     wctdm24xxp+  d161:8005 Wildcard TDM410P

# init 6

# dmesg | grep 0000:01:0a.0
...
[   12.895133] wctdm24xxp 0000:01:0a.0: Port 1: Installed -- AUTO FXS/DPO
...
[   12.895143] wctdm24xxp 0000:01:0a.0: Port 4: Installed -- AUTO FXO (FCC mode)
[   14.211217] wctdm24xxp 0000:01:0a.0: Found a Wildcard TDM: Wildcard TDM410P (0 BRI spans, 2 analog channels)

root@VAL:~# lsmod | grep dah
dahdi_voicebus         57344  1 wctdm24xxp
dahdi                 217088  2 wctdm24xxp,dahdi_voicebus

root@VAL:~# dahdi_scan -vvvvv
[1]
active=yes
alarms=OK
description=Wildcard TDM410P
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM410P
location=PCI Bus 01 Slot 11
basechan=1
totchans=4
irq=0
type=analog
port=1,FXS
port=2,none
port=3,none
port=4,FXO


# dahdi_span_assignments auto

# cat /etc/dahdi/genconf_parameters
lc_country ru

# dahdi_genconf -v

# cat /etc/dahdi/system.conf

# cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Mon Jul 10 12:46:23 2017

;;; line="1 WCTDM/0/0 FXOKS"
signalling=fxo_ks
callerid="Ivanov I I" <101>
context=default
channel => 1

;;; line="4 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
context=from-101
channel => 4

/etc/asterisk/chan_dahdi.conf
#include /etc/asterisk/dahdi-channels.conf

# cat /etc/asterisk/extensions.conf
[default]
exten => 101,1,Dial(DAHDI/1)

exten => 107,1,Dial(DAHDI/4/107)

[from-101]
exten => s,1,Answer()
exten => s,n,Goto(default,101,1)
плата_digium_tdm.1499761805.txt.gz · Last modified: 2017/07/11 11:30 by val