Re: [Asterisk-Users] auto 'modprobe wct1xxp' on startup?
cd /usr/src/asterisk; make config; cd /usr/src/zaptel; make config regards Martin On Tue, 7 Oct 2003, john lawler wrote: > Hi guys, > > Thanks for your answers on my two questions yesterday. That's exactly > what I was looking for, sorry for not noticing it myself, but I'm still > getting acclimated to Asterisk and even Linux--from what I see so far, I > love it. > > I've got another one now. Since my Asterisk install and configuration > is fairly stable at this point, I'm interested it ensuring that during > the event of a power failure, when the power returns (or if the machine > is manually restarted) that Asterisk will successfully load on the other > side (automatically). > > I've used the provided asterisk startup script (which I moved to > /etc/rc.d/init.d) and RedHat's 'chkconfig' to make sure that Asterisk is > started on bootup, but the problem I'm having has to do w/ the wct1xxp > module, I believe. > > When I want to start Asterisk manually, I just type 'modprobe wct1xxp' > and my two T1 cards are correctly started and then I can start asterisk > w/ the normal commands and everything works. > > But, when I come back from a restart, it appears that the Asterisk > startup failed, and I think it's b/c the wct1xxp module is not loaded. > What is the recommended way to ensure this happens? I've been reading > and found that modprobe (on startup, it appears) uses /etc/modules.conf, > and here's what mine looks like: > > alias eth0 e1000 > alias scsi_hostadapter megaraid > alias usb-controller ehci-hcd > alias usb-controller1 usb-uhci > options torisa base=0xd > alias char-major-196 torisa > #post-install wcfxs /sbin/ztcfg > #post-install wcfxsusb /sbin/ztcfg > #post-install torisa /sbin/ztcfg > #post-install tor2 /sbin/ztcfg > #post-install wcfxo /sbin/ztcfg > post-install wct1xxp /sbin/ztcfg > #post-install wct4xxp /sbin/ztcfg > > (I commented out all of the modules I think I don't need, but it didn't > work when they weren't commented out anyway). Does this have something > to do w/ it? Do I need to add something to indicate that wct1xxp should > be loaded on startup elsewhere? > > I appreciate your willingness to share your knowledge and expertise. > > jl > > ___ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] auto 'modprobe wct1xxp' on startup?
On Tue, 7 Oct 2003, john lawler wrote: > But, when I come back from a restart, it appears that the Asterisk > startup failed, and I think it's b/c the wct1xxp module is not loaded. > What is the recommended way to ensure this happens? I've been reading > and found that modprobe (on startup, it appears) uses /etc/modules.conf, > and here's what mine looks like: > I've seen similar issues that seem to only happen when /usr is on a seperate filesystem than the root filesystem. I saw this happen on debian. Because /usr/lib/libtonezone.so.1 (or whatever its called) isn't available when ztcfg is run the command does not work. My solution was to have my asterisk startup script execute modprobe to load the module. James ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] auto 'modprobe wct1xxp' on startup?
Do a "make config" in /usr/src/zaptel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john lawler Sent: Tuesday, October 07, 2003 16:31 To: [EMAIL PROTECTED] Subject: [Asterisk-Users] auto 'modprobe wct1xxp' on startup? Hi guys, Thanks for your answers on my two questions yesterday. That's exactly what I was looking for, sorry for not noticing it myself, but I'm still getting acclimated to Asterisk and even Linux--from what I see so far, I love it. I've got another one now. Since my Asterisk install and configuration is fairly stable at this point, I'm interested it ensuring that during the event of a power failure, when the power returns (or if the machine is manually restarted) that Asterisk will successfully load on the other side (automatically). I've used the provided asterisk startup script (which I moved to /etc/rc.d/init.d) and RedHat's 'chkconfig' to make sure that Asterisk is started on bootup, but the problem I'm having has to do w/ the wct1xxp module, I believe. When I want to start Asterisk manually, I just type 'modprobe wct1xxp' and my two T1 cards are correctly started and then I can start asterisk w/ the normal commands and everything works. But, when I come back from a restart, it appears that the Asterisk startup failed, and I think it's b/c the wct1xxp module is not loaded. What is the recommended way to ensure this happens? I've been reading and found that modprobe (on startup, it appears) uses /etc/modules.conf, and here's what mine looks like: alias eth0 e1000 alias scsi_hostadapter megaraid alias usb-controller ehci-hcd alias usb-controller1 usb-uhci options torisa base=0xd alias char-major-196 torisa #post-install wcfxs /sbin/ztcfg #post-install wcfxsusb /sbin/ztcfg #post-install torisa /sbin/ztcfg #post-install tor2 /sbin/ztcfg #post-install wcfxo /sbin/ztcfg post-install wct1xxp /sbin/ztcfg #post-install wct4xxp /sbin/ztcfg (I commented out all of the modules I think I don't need, but it didn't work when they weren't commented out anyway). Does this have something to do w/ it? Do I need to add something to indicate that wct1xxp should be loaded on startup elsewhere? I appreciate your willingness to share your knowledge and expertise. jl ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] auto 'modprobe wct1xxp' on startup?
On Tue, 2003-10-07 at 15:30, john lawler wrote: > Hi guys, > > Thanks for your answers on my two questions yesterday. That's exactly > what I was looking for, sorry for not noticing it myself, but I'm still > getting acclimated to Asterisk and even Linux--from what I see so far, I > love it. > > I've got another one now. Since my Asterisk install and configuration > is fairly stable at this point, I'm interested it ensuring that during > the event of a power failure, when the power returns (or if the machine > is manually restarted) that Asterisk will successfully load on the other > side (automatically). > > I've used the provided asterisk startup script (which I moved to > /etc/rc.d/init.d) and RedHat's 'chkconfig' to make sure that Asterisk is > started on bootup, but the problem I'm having has to do w/ the wct1xxp > module, I believe. > > When I want to start Asterisk manually, I just type 'modprobe wct1xxp' > and my two T1 cards are correctly started and then I can start asterisk > w/ the normal commands and everything works. > > But, when I come back from a restart, it appears that the Asterisk > startup failed, and I think it's b/c the wct1xxp module is not loaded. > What is the recommended way to ensure this happens? I've been reading > and found that modprobe (on startup, it appears) uses /etc/modules.conf, > and here's what mine looks like: > > alias eth0 e1000 > alias scsi_hostadapter megaraid > alias usb-controller ehci-hcd > alias usb-controller1 usb-uhci > options torisa base=0xd > alias char-major-196 torisa > #post-install wcfxs /sbin/ztcfg > #post-install wcfxsusb /sbin/ztcfg > #post-install torisa /sbin/ztcfg > #post-install tor2 /sbin/ztcfg > #post-install wcfxo /sbin/ztcfg > post-install wct1xxp /sbin/ztcfg > #post-install wct4xxp /sbin/ztcfg > > (I commented out all of the modules I think I don't need, but it didn't > work when they weren't commented out anyway). Does this have something > to do w/ it? Do I need to add something to indicate that wct1xxp should > be loaded on startup elsewhere? All that file does is explain what to do when loading the module. You can one of a couple of things. First you can edit the startup script to try and load the modules. This way is easy, but I'm not sure it is a good suggestion since it would try to reinsert the module when asterisk is restarted. You could make a new init.d file and link it in appropriately so that the module loading happens before asterisk startup. You could edit the /etc/modules file and list the appropriate drivers. This may be a debianism, but I don't think so. I hope you are getting the picture that there is a lot of ways to get this type of functionality accomplished under real operating systems. Have fun. -- Steven Critchfield <[EMAIL PROTECTED]> ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] auto 'modprobe wct1xxp' on startup?
john lawler wrote: Hi guys, Thanks for your answers on my two questions yesterday. That's exactly what I was looking for, sorry for not noticing it myself, but I'm still getting acclimated to Asterisk and even Linux--from what I see so far, I love it. I've got another one now. Since my Asterisk install and configuration is fairly stable at this point, I'm interested it ensuring that during the event of a power failure, when the power returns (or if the machine is manually restarted) that Asterisk will successfully load on the other side (automatically). I've used the provided asterisk startup script (which I moved to /etc/rc.d/init.d) and RedHat's 'chkconfig' to make sure that Asterisk is started on bootup, but the problem I'm having has to do w/ the wct1xxp module, I believe. When I want to start Asterisk manually, I just type 'modprobe wct1xxp' and my two T1 cards are correctly started and then I can start asterisk w/ the normal commands and everything works. But, when I come back from a restart, it appears that the Asterisk startup failed, and I think it's b/c the wct1xxp module is not loaded. What is the recommended way to ensure this happens? I've been reading and found that modprobe (on startup, it appears) uses /etc/modules.conf, and here's what mine looks like: alias eth0 e1000 alias scsi_hostadapter megaraid alias usb-controller ehci-hcd alias usb-controller1 usb-uhci options torisa base=0xd alias char-major-196 torisa #post-install wcfxs /sbin/ztcfg #post-install wcfxsusb /sbin/ztcfg #post-install torisa /sbin/ztcfg #post-install tor2 /sbin/ztcfg #post-install wcfxo /sbin/ztcfg post-install wct1xxp /sbin/ztcfg #post-install wct4xxp /sbin/ztcfg (I commented out all of the modules I think I don't need, but it didn't work when they weren't commented out anyway). Does this have something to do w/ it? Do I need to add something to indicate that wct1xxp should be loaded on startup elsewhere? I appreciate your willingness to share your knowledge and expertise. jl This is the same problem I just had. Don't know if it's the best way, but it works. I created an executable file called "rc.modules" in my /etc/rc.d/ rc.modules- #!/bin/sh /sbin/modprobe wct4xxp --- and since the module needed to load before the init script called asterisk, I call the rc.modules file from within the "rc.sysinit" file (at the end of the file) /etc/rc.d/rc.modules boots with no problems now, otherwise asterisk would not just simply start by calling it from an init script. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users