View previous topic :: View next topic |
Author |
Message |
ferp2 Tux's lil' helper
Joined: 13 Aug 2002 Posts: 104
|
Posted: Thu Mar 24, 2005 3:55 am Post subject: Automatically starting ztcfg: SOLVED |
|
|
OK, I'm using the cvs version of Asterisk. Everything works fine. The zaptel and wcfxo modules load automatically as specified in modules.autoload. Before I can start asterisk, however, I have to start ztcfg manually. Someone in a previous post recommended creating a /etc/modules.d/zaptel and putting
install wcfxo /sbin/modprobe --ignore-install wcfxo && /sbin/ztcfg
Then run modules-update to propagate it over to modules.conf.
Upon rebooting wcfxo refuses to load, however.
Does somebody have another way to do this.
Thanks
Last edited by ferp2 on Thu Mar 24, 2005 5:38 pm; edited 1 time in total |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Mar 24, 2005 9:34 am Post subject: |
|
|
In the depend() function of /etc/init.d/asterisk add
|
|
Back to top |
|
|
ferp2 Tux's lil' helper
Joined: 13 Aug 2002 Posts: 104
|
Posted: Thu Mar 24, 2005 3:30 pm Post subject: |
|
|
Did as you suggested. When I start asterisk I get the following.
Quote: | /etc/init.d/asterisk start
zaptel
* ERROR: Some services needed are missing. Run
* './asterisk broken' for a list of those
* services. "asterisk" was not started. |
Quote: | /etc/init.d/asterisk broken
* Re-caching dependency info (mtimes differ)...
* Could not get dependency info for "zaptel"!
* Please run:
* # /sbin/depscan.sh
* to try and fix this.
zaptel |
Quote: | /sbin/depscan.sh
* Caching service dependencies...
* Can't find service 'zaptel' needed by 'asterisk'; continuing... |
Note that I did not emerge asterisk/zaptel, but used the cvs version instead. I then copied the init script from
/usr/portage/net-misc/asterisk/1.0.0/asterisk.rc6.
Thanks |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Mar 24, 2005 4:28 pm Post subject: |
|
|
Oh right.
Guess you're on your own then!
But whats wrong with the portage versions of asterisk / zaptel? I use them myself .... |
|
Back to top |
|
|
ferp2 Tux's lil' helper
Joined: 13 Aug 2002 Posts: 104
|
Posted: Thu Mar 24, 2005 5:37 pm Post subject: |
|
|
In addition to adding zaptel to the depend function in /etc/init.d/asterisk, it's also necessary to set up the zaptel initscript. If you install asterisk with cvs, which is recommended, then you have to manually copy the initscripts from
/usr/portage/net-misc/zaptel/files/zaptel.rc6
and
/usr/portage/net-misc/asterisk/files/1.0.0/asterisk.rc6
to
/etc/init.d/
Do:
rc-update add zaptel default
rc-update add asterisk default
and reboot. |
|
Back to top |
|
|
|