dahdi安装笔记

本文介绍了解决DAHDI与Asterisk配置过程中遇到的问题,包括使用fxstest工具、修改system.conf文件以适配FXO/FXS线路、解决模块加载警告与错误、处理reload失败及make all构建错误等。
摘要由CSDN通过智能技术生成

一、使用fxstest

dahdi-linux-complete-2.11.1+2.11.1/tools

使用make && make install 生成的fxstest复制到/usr/sbin 目录下去


二、在astrtisk -r 后的界面module load chan_dahdi.so 错误

[Aug 24 10:47:12] WARNING[11919]: pbx.c:7074 ast_register_application2: Already have an application 'DAHDISendKeypadFacility'
[Aug 24 10:47:12] WARNING[11919]: pbx.c:7074 ast_register_application2: Already have an application 'DAHDISendCallreroutingFacility'
[Aug 24 10:47:12] WARNING[11919]: config.c:1486 process_text_line: No '=' (equal sign) in line 1646 of /etc/asterisk/chan_dahdi.conf
[Aug 24 10:47:12] ERROR[11919]: chan_dahdi.c:12653 mkintf: Signalling requested on channel 1 is FXO Loopstart but line is in FXO Kewlstart signalling
[Aug 24 10:47:12] ERROR[11919]: chan_dahdi.c:17228 build_channels: Unable to register channel '1'


更改vim /etc/dahdi/system.conf的内容

# Autogenerated by /usr/sbin/dahdi_genconf on Fri Aug 18 17:47:09 2017
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER) 
fxsks=1
echocanceller=mg2,1
fxols=2
echocanceller=mg2,2
# channel 3, WCTDM/4/2, no module.
# channel 4, WCTDM/4/3, no module.

# Global data

loadzone        = cn
defaultzone     = cn


----------------
fxsks=1 改为 fxols=1
fxols=2 改为 fxsks=2
可以使用dahdi_cfg -vvv  
root@povodo:/etc/dahdi# dahdi_cfg -vvv
DAHDI Tools Version - 2.11.1


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

Channel map:


Channel 01: FXO Loopstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)


2 channels to configure.


Changing signalling on channel 1 from FXO Kewlstart to FXO Loopstart
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
可以看出来: channel 01是FXO Lookstart
channel 02是FXS Kewlstart
三、reload时出错
Error[4663]: chan_dahdi.c:10946 build_channels: Unable to reconfigure channel '2' 
Error[4663]: chan_dahdi.c:11970 reload: Reload of chan_dahdi.so is unsuccessful!
解决办法:

在chan_dahdi.conf关联dahdi-channels.conf(chan_dahdi.conf的最后一句是#include dahdi-channels.conf) 且这两个文件中有两份关于channel 2的配置(删除chan_dahdi.conf的channels 2的配置)

四、make all 是报错

make -C linux all
make[1]: Entering directory `/usr/local/src/dahdi-linux-complete-2.11.1+2.11.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/local/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/local/src/dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.32-696.10.1.el6.x86_64 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/local/src/dahdi-linux-complete-2.11.1+2.11.1/linux'
make: *** [all] Error 2
解决办法:

 yum install kernel-devel









评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值