[asterisk-users] prob with debian and chan_zap

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jul 7 16:52:31 MST 2006


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 at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list