[Asterisk-Users] problems with asterisk starting from init.d

Tzafrir Cohen tzafrir at cohens.org.il
Tue May 24 00:13:06 MST 2005


Hi

I hope that better late than ever

On Mon, May 16, 2005 at 10:24:33AM -0400, Joel Duffield wrote:
> Hi All
> 
> I had asterisk running on a xercom 

Xorcom, please :-)

> install, I upgraded the box to a full
> debian install and now asterisk is not starting from on boot. I can start
> asterisk from the command line fine no problems, but when i type
> /etc/init.d/asterisk start it says asterisk PBX started. It doesn't start it
> though, when I look at the log file it has this.
> 
> May 16 10:19:05 WARNING[3711]: Unable to open '/dev/zap/channel': Permission
> denied

  ls -l /dev/zap

  groups asterisk

If /dev/zap is owned by group 'dialout', then simply add it to group
dialout:

  #strange and probably undocumented syntax for adduser:
  adduser asterisk dialout 

> May 16 10:19:05 ERROR[3711]: Unable to open channel 1: Permission denied
> here = 0, tmp->channel = 1, channel = 1
> May 16 10:19:05 ERROR[3711]: Unable to register channel '1'
> May 16 10:19:05 WARNING[3711]: chan_zap.so: load_module failed, returning -1
> May 16 10:19:05 WARNING[3711]: Loading module chan_zap.so failed!
> 
> the card works fine when I start asterisk from the command line. Can anyone
> help me please?

If that didn't help: what kernel version do you use? What zaptel modules
do you use? From where? 

  uname -r
  dpkg -l asterisk\* zaptel\* libpri\* |grep ^.i

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list