hey there, newbie here with a quick question. i just installed asterisk from the packages at digium ( not the deb files , i use debian 3.2) the zaptel package seems ok, and the asterisk install seems to go ok. but it keeps trying to restart on me with a failure. here is what i get from /var/log/asterisk/messages: Jul 7 12:55:30 NOTICE[6823] cdr.c: CDR simple logging enabled. Jul 7 12:55:30 WARNING[6823] res_musiconhold.c: Unable to open pseudo channel for timing... Sound may be choppy. Jul 7 12:55:31 WARNING[6823] chan_iax2.c: Unable to open IAX timing interface: Permission denied Jul 7 12:55:31 NOTICE[6827] res_musiconhold.c: Request to schedule in the past?!?! Jul 7 12:55:31 WARNING[6823] chan_zap.c: Unable to open '/dev/zap/channel': Permission denied Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to open channel 1: Permission denied here = 0, tmp->channel = 1, channel = 1 Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to register channel '1' Jul 7 12:55:31 WARNING[6823] loader.c: chan_zap.so: load_module failed, returning -1 Jul 7 12:55:31 WARNING[6823] loader.c: Loading module chan_zap.so failed! i don't get the permissions thing i have done a chown asterisk on everything in /dev/zap/ and even tried to run as root. this is my first day with asterisk, so please be easy. i have the O'Reilly book though :) thanks for any tips. sk
On 7/7/06, nephish <nephish@xit.net> wrote:> hey there, newbie here with a quick question. > i just installed asterisk from the packages at digium ( not the deb > files , i use debian 3.2) > the zaptel package seems ok, and the asterisk install seems to go ok. > but it keeps trying to restart on me with a failure. > here is what i get from /var/log/asterisk/messages: > > Jul 7 12:55:30 NOTICE[6823] cdr.c: CDR simple logging enabled. > Jul 7 12:55:30 WARNING[6823] res_musiconhold.c: Unable to open pseudo > channel for timing... Sound may be choppy. > Jul 7 12:55:31 WARNING[6823] chan_iax2.c: Unable to open IAX timing > interface: Permission denied > Jul 7 12:55:31 NOTICE[6827] res_musiconhold.c: Request to schedule in > the past?!?! > Jul 7 12:55:31 WARNING[6823] chan_zap.c: Unable to open > '/dev/zap/channel': Permission denied > Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to open channel 1: > Permission denied > here = 0, tmp->channel = 1, channel = 1 > Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to register channel '1' > Jul 7 12:55:31 WARNING[6823] loader.c: chan_zap.so: load_module failed, > returning -1 > Jul 7 12:55:31 WARNING[6823] loader.c: Loading module chan_zap.so > failed! > > i don't get the permissions thing i have done a chown asterisk on > everything in /dev/zap/ and even tried to run as root. > > this is my first day with asterisk, so please be easy. i have the > O'Reilly book though :) > > thanks for any tips. > sk > > > _______________________________________________ > --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 >A bit of information would help Please post the output of : ls -lAr /dev/zap/ and ps -ef | grep asterisk -- Cheers, Maxim Vexler "Free as in Freedom" - Do u GNU ?
On Fri, Jul 07, 2006 at 02:12:37PM -0500, nephish wrote:> hey there, newbie here with a quick question. > i just installed asterisk from the packages at digium ( not the deb > files , i use debian 3.2)What is 3.2? Testing (Etch)? Unstalble (Sid)? Are you sure it's not 3.1 (Sarge, current Stable)?> the zaptel package seems ok, and the asterisk install seems to go ok. > but it keeps trying to restart on me with a failure.Don't use safe_asterisk, for starters. Use the default init.d script. Asterisk should not just crash.> here is what i get from /var/log/asterisk/messages: > > Jul 7 12:55:30 NOTICE[6823] cdr.c: CDR simple logging enabled. > Jul 7 12:55:30 WARNING[6823] res_musiconhold.c: Unable to open pseudo > channel for timing... Sound may be choppy. > Jul 7 12:55:31 WARNING[6823] chan_iax2.c: Unable to open IAX timing > interface: Permission denied > Jul 7 12:55:31 NOTICE[6827] res_musiconhold.c: Request to schedule in > the past?!?! > Jul 7 12:55:31 WARNING[6823] chan_zap.c: Unable to open > '/dev/zap/channel': Permission denied > Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to open channel 1: > Permission denied > here = 0, tmp->channel = 1, channel = 1 > Jul 7 12:55:31 ERROR[6823] chan_zap.c: Unable to register channel '1' > Jul 7 12:55:31 WARNING[6823] loader.c: chan_zap.so: load_module failed, > returning -1 > Jul 7 12:55:31 WARNING[6823] loader.c: Loading module chan_zap.so > failed! > > i don't get the permissions thing i have done a chown asterisk on > everything in /dev/zap/ and even tried to run as root.Have you installed asterisk from a deb? /dev/zap is owned by the group dialout . There was a bug that affects Sarge where some specific udev permissions lines were dropped. But for Etch/Sid this should not be a problem. Assuming you do use udev, a manual chown would be useless, as next time the device files will be generated (next time zaptel is loaded) they'll have their old permissions back. The deb of asterisk adds asterisk to the group dialout. -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 tzafrir.cohen@xorcom.com http://www.xorcom.com
OK, yep, that was a typo. i am using 3.1 (sarge) i did not use the asterisk or zaptel packages because i tried them out yesterday. the zaptel package did not have a wctdm driver that the pdf from digium told me i needed to load, so i re-installed the os and started fresh with the packages from digium. here is what i have from dpkg -l udev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-===========================================ii udev 0.056-3 /dev/ management daemon ok, i added SUBSYSTEM=="zaptel", GROUP="dialout" to /etc/udev/permissions.rules do i still need to add asterisk to the dialout group before i reboot ? thanks so much for all the help. sk On Sat, 2006-07-08 at 02:57 +0300, Tzafrir Cohen wrote:> On Fri, Jul 07, 2006 at 05:32:24PM -0500, nephish wrote: > > cool thanks, ok, here you go > > > > piv@pivIVR:~$ ls -lAr /dev/zap/ > > total 0 > > crw-rw---- 1 root root 196, 253 2006-07-07 14:14 timer > > crw-rw---- 1 root root 196, 255 2006-07-07 14:14 pseudo > > crw-rw---- 1 root root 196, 0 2006-07-07 14:14 ctl > > crw-rw---- 1 root root 196, 254 2006-07-07 14:14 channel > > crw-rw---- 1 root root 196, 4 2006-07-07 14:14 4 > > crw-rw---- 1 root root 196, 3 2006-07-07 14:14 3 > > crw-rw---- 1 root root 196, 2 2006-07-07 14:14 2 > > crw-rw---- 1 root root 196, 1 2006-07-07 14:14 1 > > hmmm... What version of udev do you use? > dpkg -l udev > > See http://bugs.debian.org/316801 > > An answer to bug report there mentions the fix: > > You need to add the following line to /etc/udev/permissions.rules : > > SUBSYSTEM=="zaptel", GROUP="dialout" > > However udev in Etch should have this by now. >