Re: [asterisk-users] Lightning and thunder (Claude Hayn

2011-07-28 Thread Paul Hayes
On 27/07/11 19:41, Claude Hayn wrote: The office manager freaks out each time and starts randomly rebooting devices in no particular order including the UPS, PBX, Asterisk Gateway, firewall and router. Ahh that old chestnut. That's never a good thing, try to tell them not to do this,

Re: [asterisk-users] Lightning and thunder (Claude Hayn

2011-07-28 Thread William Kenworthy
On Thu, 2011-07-28 at 09:57 +0100, Paul Hayes wrote: On 27/07/11 19:41, Claude Hayn wrote: The office manager freaks out each time and starts randomly rebooting devices in no particular order including the UPS, PBX, Asterisk Gateway, firewall and router. Ahh that old chestnut.

[asterisk-users] Lightning and thunder

2011-07-27 Thread Claude Hayn
We are frequently losing power during lightning storms. (Yes we have UPS, but often by the time power comes back up the UPS has run out of juice) We are using Asterisk with a T1/PRI card as a front end connected to our PBX. Whenever there is a power outage both the Asterisk box and the PBX

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Robert Huddleston
/shutdown -r -n now end if From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Claude Hayn Sent: Wednesday, July 27, 2011 9:44 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Lightning and thunder We are frequently

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Andrew Latham
On Wed, Jul 27, 2011 at 9:44 AM, Claude Hayn chayn...@gmail.com wrote: We are frequently losing power during lightning storms.  (Yes we have UPS, but often by the time power comes back up the UPS has run out of juice) We are using Asterisk with a T1/PRI card as a front end connected to our

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Danny Nicholas
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Robert Huddleston Sent: Wednesday, July 27, 2011 9:05 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Lightning and thunder Maybe write a cludgy init.d script / bash. I.e. make a file

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Kevin P. Fleming
On 07/27/2011 10:13 AM, Danny Nicholas wrote: This is the “right” idea – have your UPS write “power loss shutdown” when it has to stop the machine, then check for that when you come back up and reboot when you see it (of course you would need to log something else to prevent a loop of reboots).

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Robert Huddleston
-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Wednesday, July 27, 2011 10:14 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Lightning and thunder This is the right idea - have your

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Robert-iPhone
gerbals Sent from my iPhone On Jul 27, 2011, at 5:32 PM, Hans Witvliet h...@a-domani.nl wrote: On Wed, 2011-07-27 at 09:44 -0400, Claude Hayn wrote: We are frequently losing power during lightning storms. (Yes we have UPS, but often by the time power comes back up the UPS has run out of

Re: [asterisk-users] Lightning and thunder

2011-07-27 Thread Stuart Elvish
Hi Claude, We noticed a little while ago (and again just recently) that some of our Asterisk boxes after a proper restart (shutdown -r now) weren't processing calls correctly (some call types did work, some didn't). One thing that fixed the problem quickly was to issue an asterisk -rx dialplan