Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatically starting ztcfg: SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ferp2
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 104

PostPosted: Thu Mar 24, 2005 3:55 am    Post subject: Automatically starting ztcfg: SOLVED Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 24, 2005 9:34 am    Post subject: Reply with quote

In the depend() function of /etc/init.d/asterisk add
Code:
need zaptel
Back to top
View user's profile Send private message
ferp2
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 104

PostPosted: Thu Mar 24, 2005 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Mar 24, 2005 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
ferp2
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 104

PostPosted: Thu Mar 24, 2005 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum