Hi Guys,
I’m running asterisk as a non-root user called asterisk. The problem I have is that whenever a reboot occurs, I can’t access /dev/zap. I’ve tried editing 50-udev.rules with the following:
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"
I’ve even tried putting these rules in something like 10-zaptel.rules but still no luck. I’ve searched all over the net as well as look in README.udev but can’t seem to find a solution. I’m running Fedora Core 7, Asterisk 1.4.12 and Zaptel 1.4.4. (My zaptel src doesn’t include the README.udev).
Each time I reboot I still get
crw------- 1 root root 196, 1 2007-11-01 12:32 1
crw------- 1 root root 196, 2 2007-11-01 12:32 2
crw------- 1 root root 196, 3 2007-11-01 12:32 3
crw------- 1 root root 196, 4 2007-11-01 12:32 4
crw------- 1 root root 196, 5 2007-11-01 12:32 5
crw------- 1 root root 196, 6 2007-11-01 12:32 6
crw------- 1 root root 196, 7 2007-11-01 12:32 7
crw------- 1 root root 196, 8 2007-11-01 12:32 8
crw------- 1 root root 196, 254 2007-11-01 12:32 channel
crw------- 1 root root 196, 0 2007-11-01 12:32 ctl
crw------- 1 root root 196, 255 2007-11-01 12:32 pseudo
crw------- 1 root root 196, 253 2007-11-01 12:32 timer
crw------- 1 root root 196, 250 2007-11-01 12:32 transcode
Any help would be greatly appreciated!
EDIT I added the following two lines to /etc/init.d/asterisk
chown --recursive asterisk:asterisk /dev/zap
chmod --recursive u=rwX,g=rX,o= /dev/zap
Thanks