DAHDI TDMox Parabel Elf2-AE

Установим оригинальный DAHDI

 cd /usr/src
 wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
 tar zvxf dahdi-linux-complete-current.tar.gz
 
 cd dahdi-linux-complete-2.10.2+2.10.2
 yum install "kernel-devel-uname-r == $(uname -r)"
 make clean && make all && make install && make config

Установим TDMox Parabel

 cd /usr/src
 wget  http://parabel.ru/d/software/dahdi/dahdi_2.9.2%2B2.9.2-parabel_2.9.2.3.tar.bz2
 tar xf dahdi_2.9.2+2.9.2-parabel_2.9.2.1.tar.bz2
 cd dahdi_2.9.2+2.9.2-parabel_2.9.2.3/dahdi_tdmox
 make && make install

<spoiler|Применим патч (спорно, можно пропустить)>

 cd /usr/src/dahdi_2.9.2+2.9.2-parabel_2.9.2.3/dahdi_tdmox/patches/dahdi-2.10.0
 ./patch.sh /usr/local/share/perl5/Dahdi/Config/Gen/

</spoiler>

Конфигурация DAHDI dynamic spans

 cd /etc/dahdi/tdmox/samples
 cp elf2-ae.conf  /etc/dahdi/tdmox/span-1.conf
 cp elf2-ae.conf  /etc/dahdi/tdmox/span-2.conf
 nano /etc/dahdi/tdmox/span-1.conf
#!/usr/bin/env /usr/bin/tdmox_genconf

spanno=1
addr=eth0/00:55:55:55:55:00/0
device=elf2-ae
timing=0
 nano /etc/dahdi/tdmox/span-2.conf
#!/usr/bin/env /usr/bin/tdmox_genconf

spanno=2
addr=eth0/00:55:55:55:55:01/0
device=elf2-ae
timing=0
 /etc/init.d/dahdi start
 cd /etc/dahdi/tdmox
 ./span-1.conf
Generating configuration files for elf2-ae
dahdi_tdmox: Configuration generation finished
 ./span-2.conf
Generating configuration files for elf2-ae
dahdi_tdmox: Configuration generation finished

не запускайте dahdi_genconf

 dahdi_tdmox
 TDMoX: Configuring span 1
 TDMoX: Configuring span 2
 # /etc/init.d/dahdi restart
/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
  wct4xxp:                                                 [  OK  ]
  wcte43x:                                                 [  OK  ]
  wcte12xp:                                                [  OK  ]
  wcte13xp:                                                [  OK  ]
  wct1xxp:                                                 [  OK  ]
  wcte11xp:                                                [  OK  ]
  wctdm24xxp:                                              [  OK  ]
  wcaxx:                                                   [  OK  ]
  wcfxo:                                                   [  OK  ]
  wctdm:                                                   [  OK  ]
  wcb4xxp:                                                 [  OK  ]
  wctc4xxp:                                                [  OK  ]
  xpp_usb:                                                 [  OK  ]
  dahdi_tdmox:                                             [  OK  ]

Running dahdi_cfg:                                         [  OK  ]
 nano /etc/dahdi/system.conf
dynamic=eth,eth0/00:55:55:55:55:00,31,0
bchan=1-15,17-31
dchan=16
alaw=1-15,17-31
loadzone       = ru
defaultzone    = ru


dynamic=eth,eth0/00:55:55:55:55:01,31,0
bchan=32-46,48-62
dchan=47
alaw=32-46,48-62
loadzone       = ru
defaultzone    = ru
 /etc/init.d/dahdi restart

<spoiler>

Loading DAHDI hardware modules:
  wct4xxp:                                                 [  OK  ]
  wcte43x:                                                 [  OK  ]
  wcte12xp:                                                [  OK  ]
  wcte13xp:                                                [  OK  ]
  wct1xxp:                                                 [  OK  ]
  wcte11xp:                                                [  OK  ]
  wctdm24xxp:                                              [  OK  ]
  wcaxx:                                                   [  OK  ]
  wcfxo:                                                   [  OK  ]
  wctdm:                                                   [  OK  ]
  wcb4xxp:                                                 [  OK  ]
  wctc4xxp:                                                [  OK  ]
  xpp_usb:                                                 [  OK  ]
  dahdi_tdmox:                                             [  OK  ]

D: auto '/sys/bus/dahdi_devices/devices/dynamic:eth:0'
auto-assign /sys/bus/dahdi_devices/devices/dynamic:eth:0
D: auto '/sys/bus/dahdi_devices/devices/dynamic:eth:1'
auto-assign /sys/bus/dahdi_devices/devices/dynamic:eth:1
Running dahdi_cfg:                                         [  OK  ]

</spoiler>

Настройка Asterisk

 nano /etc/asterisk/chan_dahdi.conf
[channels]
language=en
group=1
context=from-p1
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31

language=en
group=2
context=from-p2
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
 chown asterisk. /etc/asterisk/chan_dahdi.conf
 service asterisk restart
 asterisk -vvvr
 dahdi show status
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
Dynamic 'eth' span at 'eth0/00:55:55:55  OK      0      0      0      CAS Unk           0 db (CSU)/0-133 feet (DSX-1)
Dynamic 'eth' span at 'eth0/00:55:55:55  OK      0      0      0      CAS Unk           0 db (CSU)/0-133 feet (DSX-1)
 pri show spans
PRI span 1/0: Up, Active
PRI span 2/0: Up, Active

Настройки Elf2-AE

port1

Configuration/E1(A):
3. Line code: HDB3
4. Clock source: Line
7. CRC4: On
0. Quit
Configuration/Common:
1. VCO: 0x0
2. MAC: 005555555500
3. DST MAC: 1078d2581000
4. EC: On
0. Quit

port2

Configuration/E1(A):
3. Line code: HDB3
4. Clock source: Line
7. CRC4: On
0. Quit
Configuration/Common:
1. VCO: 0x0
2. MAC: 005555555501
3. DST MAC: 1078d2581000
4. EC: On
0. Quit

<fs medium><fc #4682b4>смотрите также:</fc></fs>

DAHDI make uninstall

Parabel ELF2-AE

~~socialite~~

Только авторизованные участники могут оставлять комментарии.
  • asterisk/tdmox.txt
  • Последние изменения: 2016/12/17