Joel Duffield
2005-May-16 07:24 UTC
[Asterisk-Users] problems with asterisk starting from init.d
Hi All I had asterisk running on a xercom 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 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? Thanks Joel -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 5/13/2005
Tzafrir Cohen
2005-May-24 00:13 UTC
[Asterisk-Users] problems with asterisk starting from init.d
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 xercomXorcom, 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 > deniedls -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@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend