OpenVox PRI D110P/D210P/D410P + dahdi

发布于 2022-08-06 11:07:57 字数 6871 浏览 12 评论 0

hello, all of users:
To install OpenVox D110P/D210P/D410P with dahdi, install some support packages as zaptel requires, then please go through these steps:
1) === get dahdi-linux, dahdi-tools and asterisk
wget http://downloads.digium.com/pub/ ... risk-1.6.0.1.tar.gz
wget http://downloads.digium.com/pub/ ... -linux-2.0.0.tar.gz
wget http://downloads.digium.com/pub/ ... -tools-2.0.0.tar.gz
wget http://downloads.digium.com/pub/ ... libpri-1.4.7.tar.gz
please unzip and cpoy those files to /usr/src/dahdi/dahdi-com(please note that this my dir, you can set to /usr/src)
2) === please change back to /usr/src/dahdi/dahdi-com/libpri-1.4.7
run: make, make install
3) === please change back to /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0
run: make, make install
4) === change the directory to /usr/src/dahdi/dahdi-com/dahdi-tools-2.0.0
run: ./configure, make, make install
5) === change to asterisk directory, in my case is /usr/src/dahdi/asterisk-1.6
5.1) ./configure
5.2) make
5.3) make install
5.4) make samples
6) === please edit the dahdi files
6.1) edit the system.conf under /etc/dahdi, some files are there:
[root@new-host-8 asterisk-1.6]# cd /etc/dahdi/
[root@new-host-8 dahdi]# ls
init.conf modules system.conf
please keep in mind that the system.conf works as zaptel.conf in zaptel
the part of system.conf will be like this:
# And change channel 2 to use the kb1 echo canceller.
#echocanceller=kb1,2
#
=================D210P==
span=1,0,0,ccs,hdb3
span=2,0,0,ccs,hdb3
bchan=1-15,17-31
dchan=16
bchan = 32-46,48-62
dchan = 47
======================
6.2) edit the chan.dahdi.conf in /etc/asterisk
the part of chan_dahdi.conf should be like this:
;stripmsd=1
;callerid=asreceived
==================
context=zap-in
switchtype=euroisdn
pridialplan=national
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
callprogress=no
callerid=asreceived
group=1
signalling=pri_cpe
channel => 1-15,17-31
group=2
signalling=pri_cpe
channel => 32-46,48-62
==================
the chan_dahdi.conf works as zapata.conf, so do not be confused.
6.3) edit extensions.conf
for incoming line: // for example only
================
[zap-in]
;
; We start with what to do when a call first comes in.
;
exten => s,1,Wait(1) ; Wait a second, just for fun
exten => s,n,Answer ; Answer the line
exten => s,n,Dial(dahdi/13) // zap has been changed to dahdi
exten => s,n,Hangup
==================

7) === modprobe dahdi
===  modprobe wct4xxp // for D110P, run wcte11xp
9) ===  dahdi_cfg -vvvvvvv // note: ztcfg changes dahdi_cfg. more commands are under /usr/sbin
============result of dahdi_cfg=========
DAHDI Tools Version - 2.0.0

DAHDI Version: 2.0.0
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 0Cool
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 1Cool
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
===========skip some channels========
10) === start asterisk by asterisk -vvvvvvvvgc
under asterisk console, run: dahdi show channels
===================================
new-host-11*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo zap-in default In Service
1 zap-in default In Service
2 zap-in default In Service
3 zap-in default In Service
4 zap-in default In Service
5 zap-in default In Service
6 zap-in default In Service
7 zap-in default In Service
8 zap-in default In Service
9 zap-in default In Service
10 zap-in default In Service
11 zap-in default In Service
12 zap-in default In Service
13 zap-in default In Service
14 zap-in default In Service
15 zap-in default In Service
17 zap-in default In Service
18 zap-in default In Service

11) ====  make a inbound call to test calls
this is only very brief info for dahdi, later, i will add more details for that. if you have any problem, please always refer these links:
voip-info.org
asterisk.org
openvox.com.cn
README file under dahdi-linux
=======================
test environments:
OpenVox D110P/D210P/D410P
Dhadi-linux-2.0.0
libpri-1.4.7
asterisk-1.6.0.1
Centos-5.0
OpenVox D110P/D210P/D410P
========================  
regards!
James.zhu

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文