TDM400P/A400P配置出错:line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected

(一)配置环境

操作系统:CentOS4.5

模拟卡:A400P (驱动与TDM400P的驱动相同,都是wctdm)

模块配置:2fxs+2fxo

1:fxs

2:fxo

3:fxs

4:fxo

Asterisk版本:

libpri-1.4.1.tar.gz

zaptel-1.4.4.tar.gz

asterisk-1.4.8.tar.gz

 

(二)zaptel.conf,zapata.conf,extensions.conf配置

1.zaptel.conf

fxoks=1

fxsks=2

fxoks=3

fxsks=4

loadzone=us

defaultzone=us

 

2.zapata.conf

..................

group=1

signalling=fxo_ks

context=internal

channel=1,3

 

group=2

signalling=fxs_ks

context=incoming

channel=2,4

 

4.extensions.conf

[internal]

exten => 1000,1,Dial(Zap/1)

exten => 3000,1,Dial(Zap/3)

 

[incoming]

exten => s,1,Answer()

exten => s,2,Dial(Zap/g1,20,rt)

 

(三)出错现象:

关机后开机四个指示灯不亮.

重启前如果指示灯亮,则重启后灯仍然亮

开机后:

1.#ztcfg -vv

Notice: Configuration file is /etc/zaptel.conf

 line 0: Unable to open master device '/dev/zap/ct1'    

1 error(s) detected

 

2.此时发现asterisk已经启动

进入asterisk -r

CLI>zap show channels

No such command 'zap show' (type 'help' for help)

 

3.退出asterisk

CLI>stop now

 

4.重新加载驱动

#modprobe zaptel

#modprobe -r wctdm

#modprobe wctdm

Notice: Configuration file is /etc/zpatel.conf

line 0: Unable to open master device '/dev/zap;/ctl'

1 error(s) detected

FATAL: Error running install command for wctdm

 

5.ztcfg -vv

Zaptel Version: 1.4.4

Echo Canceller: MG2

Configuration

==================

Channel map:

Channel 01: FXO Kewlstart (Default) (Slaves: 01)

Channel 02: FXO Kewlstart (Default) (Slaves: 02)

Channel 03: FXO Kewlstart (Default) (Slaves: 03)

Channel 04: FXO Kewlstart (Default) (Slaves: 04)

4 channels configured.

Changing signlling on channel 1 from Unused to FXO Kewlstart

Changing signlling on channel 1 from Unused to FXO Kewlstart

Changing signlling on channel 1 from Unused to FXO Kewlstart

Changing signlling on channel 1 from Unused to FXO Kewlstart

 

6.进入asterisk

#asterisk -vvc

 

7.查看zap通道状态

CLI>zap show channels

pseudo                    incoming                en                default

            1                    internal                    en                default

            2                    incoming                 en                default

            3                    internal                    en                default

            4                    incoming                 en                default

 

正常说明配置成功

不正常会有提示:No such command 'zap show' (type 'help' for help)

 

(四)可能的解决方法

1..#ztcfg -vv

2.#genzaptelconf

3.#vim /etc/zaptel.conf

把所有的fxsls修改为fxsks

4.#ztcfg -vv

5.#asterisk -vvc

 

(五)分析原因:

根据ztcfg -vv的提示

Notice: Configuration file is /etc/zaptel.conf

 line 0: Unable to open master device '/dev/zap/ct1'    

1 error(s) detected

可能的一种原因是wctdm驱动没有成功加载,而此时asterisk已经启动.

也就是说此时zap通道不存在

所以asterisk中不存在以下命令

#zap show channels

 

网上遇到这种问题的不少,可是都没有提供一种有效的解决办法

Can anybody help me?

 

 

下面仅供参考:

关闭电脑,将A400P从PCI插槽拿掉,开机,出现硬件勘察工具界面,删除配置.

.关闭电脑,安装A400P,开机,在硬件勘察工具界面,选择配置选项.

Im not sure what trixbox did wrong.


However, Trixbox does not look like chan_zap built correctly, or it is not setup correctly.

do a 'module reload chan_zap.so' from the asterisk CLI.

This will spit out errors of why it could possibly not have loaded.

a) does the card show up in lspci

b) does the card show up in /proc/interrupts

If not, move card to another slot, try again.

 

core show hints
There are no registered dialplan hints
*CLI> sip show subscriptions
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值