[asterisk-users] Unable to open master device '/dev/zap/ctl'

ast guy astguy at gmail.com
Wed Jan 16 04:55:08 CST 2008


Hi,

I'm using zaptel-1.2.22.1 with asterisk-1.2.10 and following steps to
make zaptel working...

OS is gentoo linux 2006.1

Hardware:
---------

0000:05:01.0 Communication controller: Tiger Jet Network Inc. Tiger3XX
Modem/ISDN interface
        Subsystem: Unknown device 8085:0003
        Flags: bus master, medium devsel, latency 32, IRQ 22
        I/O ports at b400
        Memory at ff900000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 2

- Compiled, installed zaptel
- Compiled, installed Asterisk

gigli ~ # modprobe zaptel

/var/log/messages:
Jan 16 15:42:31 gigli Zapata Telephony Interface Registered on major 196
Jan 16 15:42:31 gigli Zaptel Version: 1.2.22.1
Jan 16 15:42:31 gigli Zaptel Echo Canceller: KB1

gigli ~ # modprobe wcfxo

/var/log/messages:
Jan 16 15:42:33 gigli ACPI: PCI Interrupt 0000:05:01.0[A] -> GSI 22
(level, low) -> IRQ 22
Jan 16 15:42:33 gigli wcfxo: DAA mode is 'FCC'
Jan 16 15:42:33 gigli Found a Wildcard FXO: Wildcard X101P

gigli # ztcfg  -v
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected


Asterisk log
-------------

 [chan_zap.so] => (Zapata Telephony)
  == Parsing '/etc/asterisk/zapata.conf': Found
Jan 16 15:43:30 WARNING[5415]: chan_zap.c:915 zt_open: Unable to open
'/dev/zap/channel': No such file or directory
Jan 16 15:43:30 ERROR[5415]: chan_zap.c:6861 mkintf: Unable to open
channel 1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
Jan 16 15:43:30 ERROR[5415]: chan_zap.c:10288 setup_zap: Unable to
register channel '1'
Jan 16 15:43:30 WARNING[5415]: loader.c:414 __load_resource:
chan_zap.so: load_module failed, returning -1
Jan 16 15:43:30 WARNING[5415]: loader.c:554 load_modules: Loading
module chan_zap.so failed!


Zaptel File /etc/zaptel.conf:
-----------------------------

fxsks=1
loadzone = us
defaultzone=us


UDEV file /etc/udev/rules.d/50-udev.rules:
-----------------------------------------

# Asterisk Zaptel devices
KERNEL=="zapctl",       NAME="zap/ctl"
KERNEL=="zaptimer",     NAME="zap/timer"
KERNEL=="zapchannel",   NAME="zap/channel"
KERNEL=="zappseudo",    NAME="zap/pseudo"
KERNEL=="zap[0-9]*",    NAME="zap/%n"

ZAPATA file:
-----------

gigli  # cat /etc/asterisk/zapata.conf

[trunkgroups]

[channels]
context=default
switchtype=national
signalling=fxs_ks
rxwink=300              ; Atlas seems to use long (250ms) winks

usecallerid=yes
cidstart=ring
hidecallerid=no
callwaiting=yes
restrictcid=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
rxgain=5.0
txgain=5.0

immediate=no
callerid=asrecieved
busydetect=yes
busycount=4
musiconhold=default

context=default
group=1

channel =>1



Can anyone give hint, what am I missing ?


-ag



More information about the asterisk-users mailing list