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

2008-01-17 Thread Tzafrir Cohen
On Wed, Jan 16, 2008 at 10:09:54PM -0500, Walter Willis wrote:
> 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:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- 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


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

2008-01-16 Thread Walter Willis
any version of asterisk not create nodes into /proc/zap
create to command, view into make file how to create nodes

On Jan 16, 2008 8:48 PM, Walter Willis <[EMAIL PROTECTED]> wrote:

> create nodes and links /proc/zap
>
>
>
> On Jan 16, 2008 3:39 PM, Chris Bagnall <[EMAIL PROTECTED]> wrote:
>
> > 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
> >
>
>
___
-- 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

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

2008-01-16 Thread Walter Willis
create nodes and links /proc/zap


On Jan 16, 2008 3:39 PM, Chris Bagnall <[EMAIL PROTECTED]> wrote:

> 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
>
___
-- 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

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

2008-01-16 Thread Chris Bagnall
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


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

2008-01-16 Thread Tzafrir Cohen
On Wed, Jan 16, 2008 at 03:55:08PM +0500, ast guy wrote:
> 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:
> -
> 
> :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 ff90 (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 :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/

> 
> 1 error(s) detected
> 
> 
> Asterisk log
> -
> 

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

> 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:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- 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


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

2006-01-16 Thread Kerry Garrison
Answer is posted here:
http://voipspeak.net/forum/index.php?topic=66.0
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Manuel Casal
> Sent: Monday, January 16, 2006 5:00 AM
> To: asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] Unable to open master device '/dev/zap/ctl'
> 
> Hi,
> 
> I'm running [EMAIL PROTECTED] with a TDM2400
> 
> When i try to load the wctd24xx always get the same error:
> 
> Notice: Configuration file is /etc/zaptel.conf line 0: Unable 
> to open master device '/dev/zap/ctl'
> 
> 1 error(s) detected
> 
> I try to load the modules manualy:
> 
> [EMAIL PROTECTED] ~]# modprobe zaptel
> [EMAIL PROTECTED] ~]# modprobe wctdm24xxp
> Notice: Configuration file is /etc/zaptel.conf line 0: Unable 
> to open master device '/dev/zap/ctl'
> 
> 1 error(s) detected
> 
> /var/log/messages:
> 
> Jan 16 07:53:30 asterisk1 kernel: Zapata Telephony Interface 
> Registered on major 196 Jan 16 07:55:12 asterisk1 kernel: 
> ACPI: PCI interrupt :02:0c.0[A] -> GSI 20 (level, low) -> 
> IRQ 217 Jan 16 07:55:12 asterisk1 kernel: PCI Config reg is 
> 02900117 Jan 16 07:55:12 asterisk1 kernel: WCTDM2400P: New 
> Reg: fe59!
> Jan 16 07:55:12 asterisk1 kernel: Detected REG0: 0100 Jan 
> 16 07:55:12 asterisk1 kernel: Detected REG1: 7849 Jan 16 
> 07:55:12 asterisk1 kernel: Detected REG2: 001d Jan 16 
> 07:55:12 asterisk1 kernel: (pre) Reg fc is 5027 Jan 16 
> 07:55:12 asterisk1 kernel: (post) Reg fc is 5024 Jan 16 
> 07:55:12 asterisk1 kernel: Detected REG2:  Jan 16 
> 07:55:12 asterisk1 kernel: wctdm2400p: reg is a04c0004 Jan 16 
> 07:55:12 asterisk1 kernel: Resetting the modules...
> Jan 16 07:55:12 asterisk1 kernel: During Resetting the modules...
> Jan 16 07:55:12 asterisk1 kernel: After resetting the modules...
> Jan 16 07:55:13 asterisk1 kernel: Port 1: Not installed Jan 
> 16 07:55:13 asterisk1 kernel: Port 2: Not installed Jan 16 
> 07:55:13 asterisk1 kernel: Port 3: Not installed Jan 16 
> 07:55:13 asterisk1 kernel: Port 4: Not installed Jan 16 
> 07:55:13 asterisk1 kernel: Port 5: Not installed Jan 16 
> 07:55:14 asterisk1 kernel: Port 6: Not installed Jan 16 
> 07:55:14 asterisk1 kernel: Port 7: Not installed Jan 16 
> 07:55:14 asterisk1 kernel: Port 8: Not installed Jan 16 
> 07:55:14 asterisk1 kernel: Port 9: Not installed Jan 16 
> 07:55:14 asterisk1 kernel: Port 10: Not installed Jan 16 
> 07:55:15 asterisk1 kernel: Port 11: Not installed Jan 16 
> 07:55:15 asterisk1 kernel: Port 12: Not installed Jan 16 
> 07:55:15 asterisk1 kernel: Port 13: Installed -- AUTO FXO 
> (FCC mode) Jan 16 07:55:16 asterisk1 kernel: Port 14: 
> Installed -- AUTO FXO (FCC mode) Jan 16 07:55:16 asterisk1 
> kernel: Port 15: Installed -- AUTO FXO (FCC mode) Jan 16 
> 07:55:17 asterisk1 kernel: Port 16: Installed -- AUTO FXO 
> (FCC mode) Jan 16 07:55:17 asterisk1 kernel: Port 17: 
> Installed -- AUTO FXO (FCC mode) Jan 16 07:55:18 asterisk1 
> kernel: Port 18: Installed -- AUTO FXO (FCC mode) Jan 16 
> 07:55:18 asterisk1 kernel: Port 19: Installed -- AUTO FXO 
> (FCC mode) Jan 16 07:55:19 asterisk1 kernel: Port 20: 
> Installed -- AUTO FXO (FCC mode) Jan 16 07:55:19 asterisk1 
> kernel: Port 21: Installed -- AUTO FXO (FCC mode) Jan 16 
> 07:55:19 asterisk1 kernel: Port 22: Installed -- AUTO FXO 
> (FCC mode) Jan 16 07:55:20 asterisk1 kernel: Port 23: 
> Installed -- AUTO FXO (FCC mode) Jan 16 07:55:20 asterisk1 
> kernel: Port 24: Installed -- AUTO FXO (FCC mode) Jan 16 
> 07:55:20 asterisk1 kernel: VPM: Chip 0: ver 33 Jan 16 
> 07:55:20 asterisk1 kernel: VPM: U-law mode Jan 16 07:55:20 
> asterisk1 kernel: VPM: Chip 1: ver 33 Jan 16 07:55:20 
> asterisk1 kernel: VPM: Chip 2: ver 33 Jan 16 07:55:20 
> asterisk1 kernel: VPM: Chip 3: ver 33 Jan 16 07:55:21 
> asterisk1 kernel: VPM: DTMF threshold set to 1250 Jan 16 
> 07:55:21 asterisk1 kernel: VPM: Present and operational Jan 
> 16 07:55:21 asterisk1 kernel: Found a Wildcard TDM: Wildcard 
> TDM2400P Prototype (24 modules)
> 
> Seems that fails the ztcfg command in the modules installations.
> But i dont know how to solve it
> Any Ideas??
> 
> here is my zapata.conf
> 
> [EMAIL PROTECTED] ~]# cat /etc/zaptel.conf
> fxsks=13-24
> loadzone= us
> defaultzone = us
> 
> Thanks in advance.
> 
> 
> --
> Manuel Casal
> [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED]
> Sistemas de Información y Protección de Datos, S.L.
> Telf. + 34 902 678006
> e-mail: [EMAIL PROTECTED]
> web: http://www.e-sistemas.net
> 
> 


___
--Bandwidth and Colocation provided by Easynews.com --

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


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

2005-06-16 Thread f6hqz-m
Hi guys !

Correct zaptel modules are probably missing, as wcfxo.
He must recopile zaptel on his Asterisk machine.

Best Regards,
Fracnois BERGERET,
France.

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Sebastian
Silva
Envoyé : mercredi 15 juin 2005 21:26
À : Kumara Jayaweera; Asterisk Users Mailing List - Non-Commercial
Discussion
Objet : Re: [Asterisk-Users] Unable to open master device '/dev/zap/ctl'


Seems like your linux doesn't see your zaptel hardware.

You can try with "lspci -vvv" and watch for "Network controller: Tiger 
Jet Network".

Hope this help
Sebas

Kumara Jayaweera wrote:
> Hi all,
> 
> 
> 
> when I try to load asterisk I get this error
> 
> 
> 
> [chan_zap.so] => (Zapata Telephony w/PRI)
>   == Parsing '/etc/asterisk/zapata.conf': Found
> Jun 15 10:41:29 WARNING[3615]: chan_zap.c:869 zt_open: Unable to open
> '/dev/zap/channel': No such file or directory
> Jun 15 10:41:29 ERROR[3615]: chan_zap.c:6572 mkintf: Unable to open 
> channel
> 1: No such file or directory
> here = 0, tmp->channel = 1, channel = 1
> Jun 15 10:41:29 ERROR[3615]: chan_zap.c:9910 setup_zap: Unable to register
> channel '1'
> Jun 15 10:41:29 WARNING[3615]: loader.c:402 __load_resource: chan_zap.so:
> load_module failed, returning -1
> Jun 15 10:41:29 WARNING[3615]: loader.c:523 load_modules: Loading module
> chan_zap.so failed!
> [EMAIL PROTECTED] asterisk]#
> 
>  if I try to run asterisk I get this error
> 
> 
> 
> [EMAIL PROTECTED] ~]# cd /etc/asterisk
> [EMAIL PROTECTED] asterisk]# ztcfg -vv
> Notice: Configuration file is /etc/zaptel.conf
> line 0: Unable to open master device '/dev/zap/ctl'
> line 204: Cannot get number of tones chanel 1
> line 204: Cannot init tones chanel 1
> line 204: Cannot get number of tones chanel 2
> line 204: Cannot init tones chanel 2
> 
> 5 error(s) detected
> 
> [EMAIL PROTECTED] asterisk]#
> 
> please help me
> 
> kumara
> 
> 
> 
> ___
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com 
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 

-- 
Sebastian Silva
G R U P O  G A U S S
Depto. Sistemas
Av. Libertador 6250 4 piso
Tl.: 4 706- (int. 121)
[EMAIL PROTECTED] ___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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


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

2005-06-15 Thread Shamsul Arefin
IF using Fedora Core 3. Make the following changes.

To /etc/vdev/50-udev.rules

# Section for zaptel device
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"

and following to /etc/udev/50-udev.permission
zap/*:root:root:05700

then make sure you modprobe zaptel before you modprobe any other device



BEst Regards
Shamsul Arefin
Iris Communicaitons P/L
The Broadband Telephony Experts


On 6/16/05, Kumara Jayaweera <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> 
> 
> when I try to load asterisk I get this error
> 
> 
> 
> [chan_zap.so] => (Zapata Telephony w/PRI)
>   == Parsing '/etc/asterisk/zapata.conf': Found
> Jun 15 10:41:29 WARNING[3615]: chan_zap.c:869 zt_open: Unable to open
> '/dev/zap/channel': No such file or directory
> Jun 15 10:41:29 ERROR[3615]: chan_zap.c:6572 mkintf: Unable to open channel
> 1: No such file or directory
> here = 0, tmp->channel = 1, channel = 1
> Jun 15 10:41:29 ERROR[3615]: chan_zap.c:9910 setup_zap: Unable to register
> channel '1'
> Jun 15 10:41:29 WARNING[3615]: loader.c:402 __load_resource: chan_zap.so:
> load_module failed, returning -1
> Jun 15 10:41:29 WARNING[3615]: loader.c:523 load_modules: Loading module
> chan_zap.so failed!
> [EMAIL PROTECTED] asterisk]#
> 
>  if I try to run asterisk I get this error
> 
> 
> 
> [EMAIL PROTECTED] ~]# cd /etc/asterisk
> [EMAIL PROTECTED] asterisk]# ztcfg -vv
> Notice: Configuration file is /etc/zaptel.conf
> line 0: Unable to open master device '/dev/zap/ctl'
> line 204: Cannot get number of tones chanel 1
> line 204: Cannot init tones chanel 1
> line 204: Cannot get number of tones chanel 2
> line 204: Cannot init tones chanel 2
> 
> 5 error(s) detected
> 
> [EMAIL PROTECTED] asterisk]#
> 
> please help me
> 
> kumara
> 
> 
> 
> ___
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Best Regards
Shamsul Arefin
Saktek Technologies
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-06-15 Thread Sebastian Silva

Seems like your linux doesn't see your zaptel hardware.

You can try with "lspci -vvv" and watch for "Network controller: Tiger 
Jet Network".


Hope this help
Sebas

Kumara Jayaweera wrote:

Hi all,



when I try to load asterisk I get this error



[chan_zap.so] => (Zapata Telephony w/PRI)
  == Parsing '/etc/asterisk/zapata.conf': Found
Jun 15 10:41:29 WARNING[3615]: chan_zap.c:869 zt_open: Unable to open
'/dev/zap/channel': No such file or directory
Jun 15 10:41:29 ERROR[3615]: chan_zap.c:6572 mkintf: Unable to open channel
1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
Jun 15 10:41:29 ERROR[3615]: chan_zap.c:9910 setup_zap: Unable to register
channel '1'
Jun 15 10:41:29 WARNING[3615]: loader.c:402 __load_resource: chan_zap.so:
load_module failed, returning -1
Jun 15 10:41:29 WARNING[3615]: loader.c:523 load_modules: Loading module
chan_zap.so failed!
[EMAIL PROTECTED] asterisk]#

 if I try to run asterisk I get this error



[EMAIL PROTECTED] ~]# cd /etc/asterisk
[EMAIL PROTECTED] asterisk]# ztcfg -vv
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'
line 204: Cannot get number of tones chanel 1
line 204: Cannot init tones chanel 1
line 204: Cannot get number of tones chanel 2
line 204: Cannot init tones chanel 2

5 error(s) detected

[EMAIL PROTECTED] asterisk]#

please help me

kumara



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



--
Sebastian Silva
G R U P O  G A U S S
Depto. Sistemas
Av. Libertador 6250 4 piso
Tl.: 4 706- (int. 121)
[EMAIL PROTECTED]
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-04-08 Thread Juan Luis Moyano
Sorry for the inconvenience, problem solved! I had left by mistake the 
defs26 USE flag enabled at /etc/portage/package.use, oops! Thanks for 
your help!

--
Juan Luis Moyano
Ben Hencke wrote:
Does anything show up in /var/log/messages when you do the "modprobe 
zaptel" ? I get this line:
Zapata Telephony Interface Registered on major 196

That may give you some hint as to why it is not loading.
- Ben

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


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

2005-04-08 Thread Juan Luis Moyano
I don't get the /dev/zap* files created.. I think the problem is in the 
loading of the zaptel module:

# modprobe zaptel
(no messages)
#/etc/init.d/zaptel stop
* ERROR:  "zaptel" has not yet been started.
so the module isn't loading, perhaps the problem is in the zaptel 
instalation. Any suggestion?

--
Juan Luis Moyano
[EMAIL PROTECTED]
Ben Hencke wrote:
> Do you have /dev/zap* files? (not in subdirectory)
> If so, maybe something is wrong with the udev configs.
> If not, maybe the zaptel module is not loading.
>
> The /dev/zap/* files are created with the zaptel module before any card
> specific module.
>
> Do you have any messages when starting the zaptel module?
> /etc/init.d/zaptel stop
> modprobe zaptel
>
> - Ben
>
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com 
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-04-08 Thread Ben Hencke
Do you have /dev/zap* files? (not in subdirectory)
If so, maybe something is wrong with the udev configs.
If not, maybe the zaptel module is not loading.

The /dev/zap/* files are created with the zaptel module before any card specific module.

Do you have any messages when starting the zaptel module?
/etc/init.d/zaptel stop
modprobe zaptel 

- BenOn Apr 8, 2005 8:17 AM, Juan Luis Moyano <[EMAIL PROTECTED]> wrote:-BEGIN PGP SIGNED MESSAGE-Hash: SHA1Hello, I installed asterisk (1.0.7) on my Gentoo (2.6.11-gentoo-r3) boxwith udev support, also installed zaptel (1.0.7). I have a TDM31Bcorrectly installed. My problem comes right after I modprobe the cardand I execute 'ztcfg -vv', it gives me the following error:line 3: Unable to open master device '/dev/zap/ctl'It seems that the system is not creating the /zap devices. I made allthe modifications to the /etc/udev/rules.d and permissions.d as statedon README.udev, and it is still not creating the devices. I don't knowwhat else to do. Please shed me some light on this. Below I post the my/var/log/messages. Thanks in advance.Apr  7 22:34:14 vocero kernel: Module 0: Installed -- AUTO FXS/DPOApr  7 22:34:14 vocero kernel: Module 1: Installed -- AUTO FXS/DPOApr  7 22:34:14 vocero kernel: Module 2: Installed -- AUTO FXS/DPOApr  7 22:34:14 vocero kernel: Module 3: Installed -- AUTO FXO (FCC mode)Apr  7 22:34:14 vocero kernel: Found a Wildcard TDM: Wildcard TDM400PREV H (4 modules)- --Juan Luis Moyano[EMAIL PROTECTED]-BEGIN PGP SIGNATURE-Version: GnuPG v1.2.3 (MingW32)Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.orgiD8DBQFCVqB6cpv/tMr+H20RAi4cAJ0dHIgPzCD0dKcANoOhYowQrmKRYACg1c8R99VZ+yvJVki+/O6MfJ7/D2I==2FGC-END PGP SIGNATURE-___Asterisk-Users mailing listAsterisk-Users@lists.digium.comhttp://lists.digium.com/mailman/listinfo/asterisk-usersTo UNSUBSCRIBE or update options visit:   http://lists.digium.com/mailman/listinfo/asterisk-users___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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

2004-11-24 Thread Jose Hernandez
If you are using udev you will get a message during compile suggesting to
read README.udev, I did not pay attention to this message.

Anyways.. I did not get the error after creating a udev rules file in
/etc/udev/rules.d with the rules in /usr/src/zaptel/README.udev

/etc/udev/rules.d/zaptel.rules
# section for zaptel device
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"


Now I get this error, I will troubleshoot it later tonight.

[EMAIL PROTECTED] zaptel]# ztcfg -vv
Zaptel Configuration
==
Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
2 channels configured.
ZT_CHANCONFIG failed on channel 2: No such device or address (6)


- Jose


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Leandro Morgado
On Thu, 2004-11-25 at 00:10, Jose Hernandez wrote:
> I added the rules to udev permissions file and changed zaptel.conf,
> restarted. 
> I still get the same error;
> 
> [EMAIL PROTECTED] frank]# ztcfg -vv
> Zaptel Configuration
> ==
> Channel map:
> 
> Channel 01: FXS Kewlstart (Default) (Slaves: 01)
> Channel 02: FXO Kewlstart (Default) (Slaves: 02)
> 
> 2 channels configured.
> 
> Notice: Configuration file is /etc/zaptel.conf
> line 5: Unable to open master device '/dev/zap/ctl'
> 
> zaptel.conf
> fxsks=1  ;X100P
> fxoks=2 ;TDM400, TDM10B (1 FXS port)
> loadzone=us
> defaultzone=us
> 

I don't know if it makes a difference but try putting loadzone and
defaultzone before the fxXks declarations. Also be careful with spacing.
I remember once I had problems because a config file (don't remember if
it was zapata.conf or zaptel.conf) had (or had no) spaces when I
"declared" the channels. Little parsing glitches! :)

> This is the output from "ls -al za*" in /dev
> crw---  1 root root 196,   1 Nov 23 15:33 /dev/zap1
> crw---  1 root root 196, 254 Nov 23 15:33 /dev/zapchannel
> crw---  1 root root 196,   0 Nov 23 15:33 /dev/zapctl
> crw---  1 root root 196, 255 Nov 23 15:33 /dev/zappseudo
> crw---  1 root root 196, 253 Nov 23 15:33 /dev/zaptimer
> 
> Are these names correct? 
> The error has /dev/zap/ctl but in /dev I have /dev/zapctl 

As the permissions are now it will only work if * runs as root (which is
a bad idea). Do a 'ps aux|grep asterisk' and find out which user
asterisk is running as.

Leandro Morgado
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Jose Hernandez
I added the rules to udev permissions file and changed zaptel.conf,
restarted. 
I still get the same error;

[EMAIL PROTECTED] frank]# ztcfg -vv
Zaptel Configuration
==
Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)

2 channels configured.

Notice: Configuration file is /etc/zaptel.conf
line 5: Unable to open master device '/dev/zap/ctl'

zaptel.conf
fxsks=1  ;X100P
fxoks=2 ;TDM400, TDM10B (1 FXS port)
loadzone=us
defaultzone=us

This is the output from "ls -al za*" in /dev
crw---  1 root root 196,   1 Nov 23 15:33 /dev/zap1
crw---  1 root root 196, 254 Nov 23 15:33 /dev/zapchannel
crw---  1 root root 196,   0 Nov 23 15:33 /dev/zapctl
crw---  1 root root 196, 255 Nov 23 15:33 /dev/zappseudo
crw---  1 root root 196, 253 Nov 23 15:33 /dev/zaptimer

Are these names correct? 
The error has /dev/zap/ctl but in /dev I have /dev/zapctl 

Anything else I should try?

Thanks

- Jose


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Kevin Walsh
Leandro Morgado [EMAIL PROTECTED] wrote:
> On Wed, 2004-11-24 at 13:53, Dave Cotton wrote:
> > On Wed, 2004-11-24 at 13:45 +, Leandro Morgado wrote:
> > > Jose Hernandez wrote:
> > > 
> > > > I installed TDM400P and X100P pci cards in a system running
> > > > mandrake 10.1 official, kernel 2.6.8.1-12mdksmp.
> > 
> > 
> > This is not udev up to its tricks again?
> >
> You are right! If his distro is using udev it might dynamically create
> the zap devices with the wrong set of permissions. I am not using udev
> (debian 2.4) but it makes sense that udev would allow you to specify the
> permissions to use when creating devices!
> 
The following seems to work (udev permissions file):

# zaptel device
zap/*:asterisk:asterisk:644
zap/channel:asterisk:asterisk:660
zap/ctl:asterisk:asterisk:660
zap/pseudo:asterisk:asterisk:660
zap/timer:asterisk:asterisk:660

If you run Asterisk as root then the above is irrelevant, but nobody
does that - right?

-- 
   _/   _/  _/_/_/_/  _/_/  _/_/_/  _/_/
  _/_/_/   _/_/  _/_/_/_/_/  _/   K e v i n   W a l s h
 _/ _/_/  _/ _/ _/_/  _/_/[EMAIL PROTECTED]
_/   _/  _/_/_/_/  _/_/_/_/  _/_/

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Leandro Morgado
On Wed, 2004-11-24 at 13:53, Dave Cotton wrote:
> On Wed, 2004-11-24 at 13:45 +, Leandro Morgado wrote:
> > Jose Hernandez wrote:
> > 
> > >I installed TDM400P and X100P pci cards in a system running mandrake 10.1
> > >official, kernel 2.6.8.1-12mdksmp.
> 
> 
> This is not udev up to its tricks again?

You are right! If his distro is using udev it might dynamically create
the zap devices with the wrong set of permissions. I am not using udev
(debian 2.4) but it makes sense that udev would allow you to specify the
permissions to use when creating devices!

Leandro Morgado
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Dave Cotton
On Wed, 2004-11-24 at 13:45 +, Leandro Morgado wrote:
> Jose Hernandez wrote:
> 
> >I installed TDM400P and X100P pci cards in a system running mandrake 10.1
> >official, kernel 2.6.8.1-12mdksmp.


This is not udev up to its tricks again?


-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-24 Thread Leandro Morgado
Jose Hernandez wrote:
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.
[EMAIL PROTECTED] asterisk]# ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 3: Unable to open master device '/dev/zap/ctl'
[EMAIL PROTECTED] asterisk]# asterisk -vvvcg
...
 == 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
 

Maybe the zaptel devices in /dev were not created properly. If they are 
there, make sure that asterisk is running as a user that has permission 
to read the /dev/zaptel devices.

Hope that helps!
Leandro Morgado
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-11-23 Thread Adnan Ahmed
Jose Hernandez wrote:
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.
[EMAIL PROTECTED] asterisk]# ztcfg
Notice: Configuration file is /etc/zaptel.conf
line 3: Unable to open master device '/dev/zap/ctl'
[EMAIL PROTECTED] asterisk]# asterisk -vvvcg
...
 == 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!
[EMAIL PROTECTED] 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
double check your zaptel.conf file you missing alot like in your TDM400 how many modules you are using 1 fxs/fxo 2 04 more and also in x100p using fxo or fxs after checking these modules properly define in zaptel.conf like
 

fxoks =1 ;x100p
fxsks = 3 ;TDM400
etc.
hope this helps.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users