Remco Barende
2005-Apr-23 10:55 UTC
[Asterisk-Users] ztcfg doesn't do anything from /etc/rc.d/rc.local
I'm setting up asterisk and want everything to load on startup. The distro I'm using is a RHEL4 rebuild (CentOS4). Because the zaptel init script doesn't work I'm trying to set everything up from rc.local. However asterisk fails to start with an error that the zap device isn't loaded. This is what I do in rc.local: /sbin/modprobe wcfxs sleep 2 /sbin/ztcfg -vvvvvvvv sleep 5 /etc/rc.d/init.d/asterisk start Zaptel does display that it has configured the 2 channels but in fact, it didn't. When I re-run ztcfg then asterisk does start. Why does it do this? Thanks!
Chris
2005-Apr-23 11:12 UTC
[Asterisk-Users] ztcfg doesn't do anything from /etc/rc.d/rc.local
You need this before wcfxs /sbin/modprobe zaptel Regards, Chris ----- Original Message ----- From: "Remco Barende" <asterisk@barendse.to> To: "Asterisk Users List" <asterisk-users@lists.digium.com> Sent: Saturday, April 23, 2005 12:55 PM Subject: [Asterisk-Users] ztcfg doesn't do anything from /etc/rc.d/rc.local> I'm setting up asterisk and want everything to load on startup. The distro > I'm using is a RHEL4 rebuild (CentOS4). > > Because the zaptel init script doesn't work I'm trying to set everything > up from rc.local. However asterisk fails to start with an error that the > zap device isn't loaded. > > This is what I do in rc.local: > /sbin/modprobe wcfxs > sleep 2 > /sbin/ztcfg -vvvvvvvv > sleep 5 > /etc/rc.d/init.d/asterisk start > > Zaptel does display that it has configured the 2 channels but in fact, it > didn't. When I re-run ztcfg then asterisk does start. > > Why does it do this? > > Thanks! > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Tony Mountifield
2005-Apr-23 14:50 UTC
[Asterisk-Users] Re: ztcfg doesn't do anything from /etc/rc.d/rc.local
In article <Pine.LNX.4.62.0504231951060.7060@raveon.vaag.nu>, Remco Barende <asterisk@barendse.to> wrote:> > Because the zaptel init script doesn't work I'm trying to set > everything up from rc.local.You should instead find out why the zaptel init script doesn't work for you. It works fine for me under Fedora Core 3, with one exception: I needed to increase the number of loop iterations where it waits for /dev/zap to become available, by changing TMOUT=10 to TMOUT=20 in /etc/rc.d/init.d/zaptel (my system was taking 11 or 12 iterations). Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org