[Asterisk-Users] Unable to open master device '/dev/zap/ctl'

Jose Hernandez jfhernandez_01 at verizon.net
Tue Nov 23 23:41:38 MST 2004


I installed TDM400P and X100P pci cards in a system running mandrake 10.1
official, kernel 2.6.8.1-12mdksmp. I can compile zaptel, libpri, asterisk
and modprobe (zaptel, wcfxs, wcfxo) without errors. Except that running
ztcfg and asterisk fails.

[root at asterisk asterisk]# ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 3: Unable to open master device '/dev/zap/ctl'

[root at asterisk asterisk]# asterisk -vvvvvvvvvvvvvvvcg
...
  == Parsing '/etc/asterisk/zapata.conf': Found
Nov 22 21:16:11 WARNING[14643]: chan_zap.c:757 zt_open: Unable to open
'/dev/zap/channel': No such file or directory
Nov 22 21:16:11 ERROR[14643]: chan_zap.c:6195 mkintf: Unable to open channel
1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
Nov 22 21:16:11 ERROR[14643]: chan_zap.c:9139 setup_zap: Unable to register
channel '1'
Nov 22 21:16:11 WARNING[14643]: loader.c:334 ast_load_resource: chan_zap.so:
load_module failed, returning -1
  == Unregistered channel type 'Tor'
  == Unregistered channel type 'Zap'
Nov 22 21:16:11 WARNING[14643]: loader.c:429 load_modules: Loading module
chan_zap.so failed!
[root at asterisk asterisk]# Ouch ... error while writing audio data: : Broken
pipe

zaptel.conf
loadzone = us
fxoks = 1


I found an page on the wiki that suggested commenting the "ifeq ($(DYNFS),)
else end if" block in Makefile. I made the changes recompiled without errors
but still same error running ztcfg and starting asterisk.

Any suggestions?

- Jose





More information about the asterisk-users mailing list