====== Плата OpenVox D130 ======
* [[https://ru.wikipedia.org/wiki/%D0%A6%D0%B8%D1%84%D1%80%D0%BE%D0%B2%D0%BE%D0%B9_%D0%BF%D0%BE%D1%82%D0%BE%D0%BA_E1|Цифровой поток E1]]
* [[http://docs.tzafrir.org.il/dahdi-tools/README.html|DAHDI Telephony Interface Driver]]
* [[http://www.openvox.cn/products/telephony-cards/digital-cards/157-d130-series|OpenVox D130 Series]]
* [[http://www.openvox.cn/pub/documents/manuals/D130P_DE130P_on_DAHDI_User_Manual.pdf|D130P_DE130P_on_DAHDI_User_Manual]]
* [[http://asterisk-support.ru/question/57191/nastroika-openvox-d130pd130e/|Настройка OpenVox D130P/D130E]]
* [[http://pinouts.ru/Net/cisco_rj45_e1.shtml|Cisco RJ45 E1 (T1) pinout]]
# lspci | grep E1
05:00.0 Network controller: OpenVox Communication Co. Ltd. D130P/D130E Single-port E1/T1 card (3rd GEN) (rev 15)
# wget http://www.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz
# cd dahdi-linux-complete-2.11.1+2.11.1/
# make all
# make install
# find /lib/modules | grep dahdi
# find /lib/modules | grep opv
# init 6
# lsmod | grep dah
# lsmod | grep opv
# apt install dahdi
# dahdi_hardware
pci:0000:05:00.0 opvxd115- 1b74:d130 OpenVox D130P/D130E
* [[Плата Digium TDM]]
* [[https://asterisk-pbx.ru/wiki/asterisk/cf/chan_dahdi|Настройка DAHDI - chan_dahdi]]
Channels in DAHDI devices (such as DAHDI PCI cards) are groups to logical units called "spans" (for example: a port in a digital card is a span).
span => ,,,,[,Yellow]
Timing:
This determines how timing is handled by the card.
* 0 - Порт является источником синхронизации
* 1 - Получает синхронизацию с удаленной станции
Line BuildOut:
The line build-out (or LBO) is an integer, from the following table:
0: 0 db (CSU) / 0-133 feet (DSX-1)
1: 133-266 feet (DSX-1)
2: 266-399 feet (DSX-1)
3: 399-533 feet (DSX-1)
4: 533-655 feet (DSX-1)
5: -7.5db (CSU)
6: -15db (CSU)
7: -22.5db (CSU)
Framing:
ccs - Common Channel Signaling (CCS) over a digital PRI. It is the transmission of signaling information out of the information band. ISDN Q.931 signaling is referred to as a CCS
Coding:
hdb3 - high density bipolar of order 3 - один из способов линейного кодирования, применяется при передаче данных на расстояние по цифровому каналу связи
crc4: Cyclic redundancy check - алгоритм нахождения контрольной суммы, предназначенный для проверки целостности данных
termtype: setting is for TE or NT (the default is TE), TE - cpe signallingget and get timing from the remote party, NT - provide timing to the remote party
# cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Wed Apr 25 10:11:25 2018
# 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: D115/0/1 "D115 (E1/T1) Card 0 Span 1" (MASTER) CCS/HDB3/CRC4 ClockSource
# span=1,1,0,ccs,hdb3,crc4
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16
alaw=1-15
alaw=17-31
echocanceller=mg2,1-15,17-31
# Global data
loadzone = ru
defaultzone = ru
# cat /etc/asterisk/dahdi-channels.conf
...
;Порядок строк играет роль!!!
group=0
context=default
switchtype = euroisdn
signalling = pri_cpe
overlapdial=incoming
channel => 1-15,17-31
...
# dahdi_scan -vvvvv
# dahdi_cfg -v
!!!! Иногда помогает "холодный" рестарт !!!!
# dahdi_scan -vvvvv
# service asterisk restart
e1*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
D115 (E1/T1) Card 0 Span 1 OK 0 0 771 CCS HDB3 CRC4 0 db (CSU)/0-133 feet (DSX-1)
# cat /etc/asterisk/extensions.conf
...
exten => _1XX,1,Dial(DAHDI/G0/${EXTEN},,tT)
exten => _4XX,1,Dial(SIP/${EXTEN})
[from-pstn]
exten => _4XX,1,Goto(default,${EXTEN},1)
e1*CLI> pri set debug on span 1
...