[asterisk-users] [CRON] Right way to restart Asterisk and Zaptel?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jun 25 03:43:04 CDT 2010


On Fri, Jun 25, 2010 at 08:59:32AM +0200, Gilles wrote:
> Hello
> 
> About every three months, my dad's little Asterisk server that handles
> his business phone line with an OpenVox PCI card stops taking calls.
> 
> To check if it's the cause, I'd like to run a CRON job every night to
> restart Zaptel and Asterisk.

That does not really check if that is the problem. Mind giving more
information as for the nature of the problem?

> 
> Before I go ahead, I'd like to know if I can just send the following
> commands, or if there are issues I should know about:
> 
> /usr/local/etc/rc.d/asterisk stop
> /usr/local/etc/rc.d/zaptel stop
> /usr/local/etc/rc.d/zaptel start
> /usr/local/etc/rc.d/asterisk start
> 
> Or, as I suspect, if there's already a good watchguard applet
> available, I could use that instead.
> 
> FWIW, it's a FreeBSD 6.3 host, running Zaptel 1.4.0-BSD and Asterisk
> 1.4.21.2.

'dahdi restart' has become more relaible as of 1.4.22 ...

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list