关闭

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

2307人阅读 评论(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

猜你在找
【视频】C语言及程序设计(讲师:贺利坚)
【视频】Python爬虫工程师培养课程全套(讲师:韦玮)
【视频】Python全栈开发入门与实战(讲师:李杰)
【视频】2017软考网络规划设计师套餐(讲师:任铄)
【视频】2017软考软件设计师套餐(讲师:任铄)
【视频】2017软考信息系统项目管理师套餐(讲师:任铄)
【视频】软考(高级)项目经理实战营(讲师:张传波)
【视频】微信公众平台开发套餐(讲师:刘运强)
深度学习原理+实战+算法+主流框架套餐(讲师:唐宇迪)
2017系统集成项目管理工程师通关套餐(讲师:徐朋)
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:391923次
    • 积分:5204
    • 等级:
    • 排名:第5092名
    • 原创:110篇
    • 转载:53篇
    • 译文:10篇
    • 评论:73条
    最新评论