Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
astguy at gmail.com
Guest





PostPosted: Wed Jan 16, 2008 5:55 am    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

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
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Jan 16, 2008 6:01 am    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

On Wed, Jan 16, 2008 at 03:55:08PM +0500, ast guy wrote:
Quote:
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'

ls -l /dev/zap/
ls -l /sys/class/zaptel/

Quote:

1 error(s) detected


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


Don't waste your time on Asterisk. Fix Zaptel first.

Quote:
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"

Looks OK. The only missing line is a permissions line. But not porblem
when you run ztcfg as root.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
lists at minotaur.cc
Guest





PostPosted: Wed Jan 16, 2008 3:39 pm    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

Make sure asterisk is in the "dialout" group in /etc/passwd

The default gentoo ebuild of zaptel creates /dev/zap/* with group dialout, and if you're using the gentoo ebuild of asterisk, it'll run as asterisk:asterisk, so you need to make sure asterisk is a member of the dialout goup otherwise it'll never be able to access /dev/zap/*

FWIW, as a fellow Gentoo user, 2006.1 is a bit dated, and you'd be well worth updating to 2007.0 if you can spare the time - it'll save you a lot of messing around with gcc versions etc. later down the line.

Regards,

Chris
--
C.M. Bagnall, Director, Minotaur I.T. Limited
For full contact details visit http://www.minotaur.it
This email is made from 100% recycled electrons
Back to top
walterwn at gmail.com
Guest





PostPosted: Wed Jan 16, 2008 8:48 pm    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

create nodes and links /proc/zap
On Jan 16, 2008 3:39 PM, Chris Bagnall <lists at minotaur.cc> wrote:

Quote:
Make sure asterisk is in the "dialout" group in /etc/passwd

The default gentoo ebuild of zaptel creates /dev/zap/* with group dialout,
and if you're using the gentoo ebuild of asterisk, it'll run as
asterisk:asterisk, so you need to make sure asterisk is a member of the
dialout goup otherwise it'll never be able to access /dev/zap/*

FWIW, as a fellow Gentoo user, 2006.1 is a bit dated, and you'd be well
worth updating to 2007.0 if you can spare the time - it'll save you a lot
of messing around with gcc versions etc. later down the line.

Regards,

Chris
--
C.M. Bagnall, Director, Minotaur I.T. Limited
For full contact details visit http://www.minotaur.it
This email is made from 100% recycled electrons




_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080116/7747e7e2/attachment.htm
Back to top
astguy at gmail.com
Guest





PostPosted: Thu Jan 17, 2008 4:31 am    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

there is no /proc/zap folder .. can you tell how can I create /dev
nodes. I have tested the same configurations on FC5 and these device
links were created ...

drwxr-xr-x 2 root root 160 Jan 17 10:59 .
drwxr-xr-x 13 root root 3640 Jan 17 11:00 ..
crw------- 1 root root 196, 1 Jan 17 10:59 1
crw------- 1 root root 196, 254 Jan 17 10:59 channel
crw------- 1 root root 196, 0 Jan 17 10:59 ctl
crw------- 1 root root 196, 255 Jan 17 10:59 pseudo
crw------- 1 root root 196, 253 Jan 17 10:59 timer
crw-rw---- 1 root root 196, 250 Jan 17 10:59 transcode

-ag

Quote:
create nodes and links /proc/zap

On Jan 16, 2008 3:39 PM, Chris Bagnall <lists at minotaur.cc> wrote:

Quote:
Quote:
Make sure asterisk is in the "dialout" group in /etc/passwd

The default gentoo ebuild of zaptel creates /dev/zap/* with group dialout,
and if you're using the gentoo ebuild of asterisk, it'll run as
asterisk:asterisk, so you need to make sure asterisk is a member of the
dialout goup otherwise it'll never be able to access /dev/zap/*

FWIW, as a fellow Gentoo user, 2006.1 is a bit dated, and you'd be well
worth updating to 2007.0 if you can spare the time - it'll save you a lot
of messing around with gcc versions etc. later down the line.

Regards,

Chris
--
C.M. Bagnall, Director, Minotaur I.T. Limited
For full contact details visit http://www.minotaur.it
This email is made from 100% recycled electrons
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Thu Jan 17, 2008 6:14 am    Post subject: [asterisk-users] Unable to open master device '/dev/zap/ctl' Reply with quote

On Wed, Jan 16, 2008 at 10:09:54PM -0500, Walter Willis wrote:
Quote:
any version of asterisk not create nodes into /proc/zap
create to command, view into make file how to create nodes

Do you suggest to use mknod manually?

This will work. Unless you use udev. And almost everybody use it.

What is the output of: mount

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services