Asterisk专题之:DAHDI与Zaptel

来源:互联网 发布:unity3d 4.5破解版 编辑:程序博客网 时间:2024/05/16 06:33

原文地址 :http://hi.baidu.com/brian/item/7ea6badf3dd79c46ddf9be98 

本周折腾OpenVox的D410p的与移动的SS7对接,OpenVox 推荐使用Asterisk 1.4 + Zaptel ,我使用的是Asterisk 1.6 + Dahdi,

总结一下DAHDI与Zaptel:

What is DAHDI?
DAHDI表示Digium Asterisk Hardware Device Interface,Zaptel是"Zapata Telephony"的缩写。


DAHDI的由来
Kevin Fleming是这样介绍DAHDI的来由的:“大约两年前(2006年),ZapTel商标的持有人找上我们,说ZapTel是他们的注册商标。从那时候起我们就在内部讨论,要把Zaptel改成DAHDI。DAHDI 2.0.0是第一个正式版本,覆盖了Zaptel 1.4 的几乎所有功能,除了某些过时的驱动版本和硬件之外。”
Asterisk 1.6将只支持DAHDI,而Asterisk 1.4将保留对Zaptel的支持。Asterisk 1.2不受影响。


DAHDI与Zaptel对比
模块名称的改变:
chan_zap.so -> chan_dahdi.so

app_zapbarge.so -> app_dahdibarge.so

app_zapras.so -> app_dahdiras.so

app_zapscan.so -> app_dahdiscan.so

codec_zap.so -> codec_dahdi.so


以下列出两者所对应的主要配置文件表:

Zaptel 文件名                                  DAHDI 文件名                                   说明 
/etc/zaptel.conf                     /etc/dahdi/system.conf                           主要的配置文件 
/etc/sysconfig/zaptel             /etc/dahdi/modules, /etc/dahdi/init.conf  开机启动参数设置 
/etc/init.d/zaptel                    /etc/init.d/dahdi                                       开机自动载入 
/etc/asterisk/zapata.conf      /etc/asterisk/chan_dahdi.conf Asterisk      配置文件


主要指令和工具名称对照表:
Zaptel                    DAHDI                                   说明 
ztcfg -vv           dahdi_cfg -vv           分析system.conf,配置语音卡参数 
zttool                dahdi_tool                语音卡检测、测试 
genzaptelconf  dahdi_genconf         生成Asterisk配置文件/etc/dahdi/system.conf 
ztmonitor          dahdi_monitor          监控录音某个通道 
ztscan              dahdi_scan              扫描通道状态 
ztspeed            dahdi_speed            测试CPU占用率 
zttest                dahdi_test                中断稳定性测试 
ztloop               dahdi_loop               自环测试E1数字中继语音卡 
                        dahdi_hardware       显示检测到的DAHDI 硬件列表。

实例:

[root@localhost ~]# dahdi_speed
Count: 453538

[root@localhost ~]# dahdi_test
Opened pseudo dahdi interface, measuring accuracy...
99.987% 99.980% 99.987% 99.987% 99.987% 99.986% 99.986% 99.987% 
--- Results after 8 passes ---
Best: 99.987 -- Worst: 99.980 -- Average: 99.985912, Difference: 99.985912
[root@localhost ~]#

[root@localhost ~]# dahdi_hardware
pci:0000:01:02.0     wct4xxp+     d161:0410 Wildcard TE410P (2nd Gen)

[root@localhost ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 1
name=TE4/0/1
manufacturer=Digium
devicetype=Wildcard TE410P (2nd Gen)
location=Board ID Switch 0
basechan=1
totchans=31
irq=193
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[2]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 2
name=TE4/0/2
manufacturer=Digium
devicetype=Wildcard TE410P (2nd Gen)
location=Board ID Switch 0
basechan=32
totchans=31
irq=193
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[3]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 3
name=TE4/0/3
manufacturer=Digium
devicetype=Wildcard TE410P (2nd Gen)
location=Board ID Switch 0
basechan=63
totchans=31
irq=193
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[4]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 4
name=TE4/0/4
manufacturer=Digium
devicetype=Wildcard TE410P (2nd Gen)
location=Board ID Switch 0
basechan=94
totchans=31
irq=193
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI,HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
[root@localhost ~]#


原创粉丝点击