User Tools

Site Tools


плата_openvox_d130

Плата OpenVox D130

# 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

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 ⇒ <Number>,<Timing>,<Line BuildOut>,<Framing>,<Coding>[,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
...
плата_openvox_d130.txt · Last modified: 2023/05/24 08:39 by val