Timing is Critical re /dev/zap/ctl

Comment on Asterisk Fedora Core 3
Anonymous

Timing is Critical re /dev/zap/ctl

Posted:Tue 08 of Feb, 2005 (19:51 UTC)
I too hit the problem of /dev/zap/ctl not being available when I upgraded to FC3. It's the udev stuff that creates devices on-the-fly. The problem is that when the zaptel module is loaded, it takes up to 5 seconds for the udev daemon to actually create the /dev/zap/ctl device. Unfortunately the startup script (/etc/init.d/zaptel) immediately runs the ztcfg command, before the device is ready.

Solutions: (1) manually run the "service zaptel reload" command after boot, as it just re-reuns the ztcfg command and by now the device is ready or (2) add a "sleep 5" command in your /etc/init.d/zaptel script just before ztcfg is run. Both fixed my problem.