免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5943 | 回复: 0
打印 上一主题 下一主题

OpenVox PRI D110P/D210P/D410P + dahdi [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-17 17:36 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP