[asterisk-users] RE: Zaptel problem after upgrading to 1.2.16

2007-03-09 Thread Mark Davies
Further to this, I believe that my problem is that I'm also now running
udev.

 

When I compiled and installed Zaptel, I did the make install-udev step,
however the permissions in my udev directory don't look correct.

 

I am running Asterisk as root (this is on a debian system btw), but this
is the content of my zaptel.rules file.

 

# zaptel devices with ownership/permissions for running as non-root

KERNEL==zapctl, NAME=zap/ctl, OWNER=asterisk, GROUP=asterisk,
MODE=0660

KERNEL==zaptranscode, NAME=zap/transcode, OWNER=asterisk,
GROUP=asterisk, MODE=0660

KERNEL==zaptimer, NAME=zap/timer, OWNER=asterisk,
GROUP=asterisk, MODE=0660

KERNEL==zapchannel, NAME=zap/channel, OWNER=asterisk,
GROUP=asterisk, MODE=0660

KERNEL==zappseudo, NAME=zap/pseudo, OWNER=asterisk,
GROUP=asterisk, MODE=0660

KERNEL==zap[0-9]*, NAME=zap/%n, OWNER=asterisk, GROUP=asterisk,
MODE=0660

zaptel.rules (END)

 

 

What do I need to do for Asterisk to be able to see the Zaptel device
while running as root?

 

 

Again, any help is much appreciated.

 

 

Regards,

 

 

Mark.

 

From: Mark Davies 
Sent: Friday, 9 March 2007 4:13 PM
To: 'asterisk-users@lists.digium.com'
Subject: Zaptel problem after upgrading to 1.2.16

 

Hi guys,

 

I'm hoping I've made a silly mistake here, but I've been staring at the
screen for the past few hours and I can't work it out.

 

I upgraded to 1.2.16 recently, and am having problems with zaptel.

 

The card is detected, I get a reasonable output from ztcfg -vv, and
zttool shows the installed module (TDM400) with one FXS module.

 

But when I start asterisk, I get an error saying that my IAX connection
won't work in trunked mode because there's no timing interface.  Zaptel
doesn't show up in the output of show channeltypes.

 

Should there be a problem with using the trunk version of zaptel, but
1.2.16 of asterisk?

 

Are there any places that I can specifically load/enable the zaptel
module?

 

 

Any help much appreciated before I go insane...  J

 

 

Regards,

 

Mark.

___
--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] RE: Zaptel problem after upgrading to 1.2.16

2007-03-09 Thread Tzafrir Cohen
On Fri, Mar 09, 2007 at 06:06:01PM +0900, Mark Davies wrote:
 Further to this, I believe that my problem is that I'm also now running
 udev.
 
  
 
 When I compiled and installed Zaptel, I did the make install-udev step,
 however the permissions in my udev directory don't look correct.
 
  
 
 I am running Asterisk as root (this is on a debian system btw), but this
 is the content of my zaptel.rules file.

You don't need install-udev there:

grep zap /etc/udev/rules.d/*

Just remove your file. Add asterisk to the group 'dialout' or edit
020_permissions.rules to use have:

SUBSYSTEM==zaptel,  USER=asterisk

instead of:

SUBSYSTEM==zaptel,   GROUP=dialout

The default mode is already 0660, so no need to set it explicitly.


I recommend that you remove /etc/udev/rules.d/zaptel , as I'm not sure
if it actually gets activated.

 
  
 
 # zaptel devices with ownership/permissions for running as non-root
 
 KERNEL==zapctl, NAME=zap/ctl, OWNER=asterisk, GROUP=asterisk,
 MODE=0660
 
 KERNEL==zaptranscode, NAME=zap/transcode, OWNER=asterisk,
 GROUP=asterisk, MODE=0660
 
 KERNEL==zaptimer, NAME=zap/timer, OWNER=asterisk,
 GROUP=asterisk, MODE=0660
 
 KERNEL==zapchannel, NAME=zap/channel, OWNER=asterisk,
 GROUP=asterisk, MODE=0660
 
 KERNEL==zappseudo, NAME=zap/pseudo, OWNER=asterisk,
 GROUP=asterisk, MODE=0660
 
 KERNEL==zap[0-9]*, NAME=zap/%n, OWNER=asterisk, GROUP=asterisk,
 MODE=0660
 
 zaptel.rules (END)
 
  
 
  
 
 What do I need to do for Asterisk to be able to see the Zaptel device
 while running as root?

Asterisk running as root?

Bad!

But in the case the permissions on the udev files don't really matter.


-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--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