关闭

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

标签: commandcentosfile工具moduleup
2339人阅读 评论(3) 收藏 举报
分类:

(一)配置环境

操作系统: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
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:413741次
    • 积分:5418
    • 等级:
    • 排名:第5146名
    • 原创:110篇
    • 转载:52篇
    • 译文:10篇
    • 评论:73条
    最新评论