This is an old revision of the document!
# 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
span ⇒ <Number>,<Timing>,<Line BuildOut>,<Framing>,<Coding>[,Yellow]
Timing:
This determines how timing is handled by the card.
* 0 - Порт является источником синхронизации * 1 - Получает синхронизацию с удаленной станции
ccs: Common Channel Signaling (CCS) over a digital PRI. It is the transmission of signaling information out of the information band
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=from-pstn 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)