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

原创 2007年09月19日 18:10:00

(一)配置环境

操作系统: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
版权声明:本文仅用于学习和交流目的。非商业转载请注明作译者、出处,并保留本文的原始链接。

相关文章推荐

asteirsk Tdm400p+安装配置步骤

安装ubuntu1204,然后执行命令: sudo apt-getupdate; sudo apt-get install openssh-server;sudo apt-getinstall su...

在导入新项目之后出现Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”的错误

最近更新了一下Android Studio,在导入新项目之后出现Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 ...

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法

最近更新了一下Android Studio(下文简写成AS),然后打开工程发现出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1...
  • e_one
  • e_one
  • 2016年04月03日 00:34
  • 25086

OGG-01091 Unable to open file (error 89, Invalid file system control data detected)

Replicat 进程报 OGG-01091 错误 Abended,无法正常启动,详情如下:   GGSCI (cqstzjdbjc01) 3> view report RCQSTJC1 Sou...

开启手机LogCat:Unable to open log device ‘/dev/log/main’: No such file or directory

开启手机LogCat:Unable to open log device ‘/dev/log/main’: No such file or directory 在我们使用真机进行Andr...

真机调试时,遇到Unable to open log device ‘/dev/log/main’: No such file or directory

在我们使用真机进行Android应用调试时,无法获得调试信息,错误提示如下:Unable to open log device ‘/dev/log/main’: No such file or dir...
  • Jimmy5z
  • Jimmy5z
  • 2012年07月22日 16:05
  • 1263

LogCat:Unable to open log device ‘/dev/log/main’: No such file or directory

在上一篇博文中讲了驱动的安装,这一篇谈谈真机中的logcat读取。 如题所示,问题描述: LogCat:Unable to open log device ‘/dev/log/main’: No su...

fs2410 linux-2.6.35内核移植中的RTC问题--drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

linux-2.6.35在fs2410开发板启动后,通过nfs挂载文件系统,但是rtc不能用,也会在挂载文件系统之前打印如下提示信息:TCP cubic registeredNET: Register...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:TDM400P/A400P配置出错:line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected
举报原因:
原因补充:

(最多只允许输入30个字)