免费注册 查看新帖 |

Chinaunix

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

OpenVox A1200P/A800P + Dahdi [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-15 21:32 |只看该作者 |倒序浏览
hello, all of users:
OpenVox releases A1200P/A800P driver to support Dahdi. To install a1200p/a800p 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

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) cd /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0/drivers/dahdi,
     open Kbuild file and add the one line like this:
=====================================
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP) += wct4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM) += wctdm.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM) += opvxa1200.o  // this is for a1200/a800p
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT1XXP) += wct1xxp.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE11XP) += wcte11xp.o
==========================================
after edit the file, please download the opvxa1200.c to the directory.
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: 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
#
fxsks=1
fxsks=2
fxoks=3-12
6.2) edit the chan.dahdi.conf in /etc/asterisk
       the part of chan_dahdi.conf should be like this:
;stripmsd=1
;callerid=asreceived
group=0
signalling=fxs_ks
context=demo
channel => 1
channel => 2
signalling=fxo_ks
context=from-internal
channel => 3-12

the chan_dahdi.conf works as zapata.conf, so do not be confused.

6.3) edit extensions.conf
       for incoming line: // for example only
================
[demo]
;
; 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/12) // zap has been changed to dahdi
exten => s,n,Hangup
==================
for internal:
===================
[from-internal]
exten => 1,1,Dial(dahdi/8|60|m(default)) // zap has been changed to daidi
exten => 1,2,hangup
exten => 2,1,Dial(dahdi/3|60|m(default)) // zap has been changed to dahdi
exten => 2,n,Hangup
======================
7) modprobe dahdi
modprobe opvxa1200
9) dahdi_cfg -vvvvvvv // note: ztcfg changes dahdi_cfg. more commands are under /usr/sbin
============result of dahdi_cfg=========
[root@new-host-8 ~]# dahdi_cfg -vvvvvvvv
DAHDI Tools Version - 2.0.0

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


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)
Channel 05: FXO Kewlstart (Default) (Slaves: 05)
Channel 06: FXO Kewlstart (Default) (Slaves: 06)
Channel 07: FXO Kewlstart (Default) (Slaves: 07)
Channel 08: FXO Kewlstart (Default) (Slaves: 0Cool
Channel 09: FXO Kewlstart (Default) (Slaves: 09)
Channel 10: FXO Kewlstart (Default) (Slaves: 10)
Channel 11: FXO Kewlstart (Default) (Slaves: 11)
Channel 12: FXO Kewlstart (Default) (Slaves: 12)

12 channels to configure.

Changing signalling on channel 1 from Unused to FXS Kewlstart
Changing signalling on channel 2 from Unused to FXS Kewlstart
Changing signalling on channel 3 from Unused to FXO Kewlstart
Changing signalling on channel 4 from Unused to FXO Kewlstart
Changing signalling on channel 5 from Unused to FXO Kewlstart
Changing signalling on channel 6 from Unused to FXO Kewlstart
Changing signalling on channel 7 from Unused to FXO Kewlstart
Changing signalling on channel 8 from Unused to FXO Kewlstart
Changing signalling on channel 9 from Unused to FXO Kewlstart
Changing signalling on channel 10 from Unused to FXO Kewlstart
Changing signalling on channel 11 from Unused to FXO Kewlstart
Changing signalling on channel 12 from Unused to FXO Kewlstart
=====================================
=============dmesg====================
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.0.0
ACPI: PCI Interrupt 0000:02:0c.0[A] -> GSI 20 (level, low) -> IRQ 201
OpenVox A1200P version: 1.2
OpenVox A1200P passed register test
Module 0: Installed -- AUTO FXO (FCC mode)
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXS/DPO
Module 3: Installed -- AUTO FXS/DPO
Module 4: Installed -- AUTO FXS/DPO
Module 5: Installed -- AUTO FXS/DPO
Module 6: Installed -- AUTO FXS/DPO
Module 7: Installed -- AUTO FXS/DPO
======== only show part of modules==========

10) start asterisk by asterisk -vvvvvvvvgc
under asterisk console, run: dahdi show channels
===================================
*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-internal default In Service
1 demo default In Service
2 demo default In Service
3 from-internal default In Service
4 from-internal default In Service
5 from-internal default In Service
6 from-internal default In Service
7 from-internal default In Service
8 from-internal default In Service
9 from-internal default In Service
10 from-internal default In Service
11 from-internal default In Service
12 from-internal default In Service
*CLI>
===============================
11) make a inbound call:
*CLI> -- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@demo:1] Wait("DAHDI/1-1", "1" in new stack
-- Executing [s@demo:2] Answer("DAHDI/1-1", "" in new stack
[Oct 15 21:18:01] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 1 (No such device)
-- Executing [s@demo:3] Dial("DAHDI/1-1", "dahdi/12" in new stack
-- Called 12
-- DAHDI/12-1 is ringing
-- DAHDI/12-1 is ringing
[Oct 15 21:18:06] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 12 (No such device)
-- DAHDI/12-1 answered DAHDI/1-1
-- Native bridging DAHDI/1-1 and DAHDI/12-1
[Oct 15 21:18:13] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 1 (No such device)
[Oct 15 21:18:13] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 12 (No such device)
-- Hungup 'DAHDI/12-1'
== Spawn extension (demo, s, 3) exited non-zero on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
==========================
this is only very brief info for dahdi and a1200p, later, i will add more details for that. if you have any problems, please always refer these links:
voip-info.org
asterisk.org
openvox.com.cn
README file under dahdi-linux
regards!
James.zhu

[ 本帖最后由 zhulizhong 于 2008-10-15 22:32 编辑 ]

dahdi_a1200p.zip

21.31 KB, 下载次数: 73

OpenVox A1200P/A800P driver for Dahdi

论坛徽章:
0
2 [报告]
发表于 2008-10-25 12:21 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP