[asterisk-users] Lightning and thunder

Danny Nicholas danny at debsinc.com
Wed Jul 27 09:13:40 CDT 2011


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).

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at 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 somewhere called
rebootflag. set it to 1 after you issue a shutdown -r -n now. then check it
in init.d script.

 

Pseudo code

 

In init.d / startup scripts

If /etc/manualreboot = 0 or file not found

echo 1 >> /etc/manualreboot

/sbin/shutdown -r -n now

end if

 

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Claude Hayn
Sent: Wednesday, July 27, 2011 9:44 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Lightning and thunder

 

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
automatically reboot when power returns.

 

The Asterisk box automatically reconnects to the ITSP SIP Peer, and the PBX
to the T1/PRI Card Asterisk box.  

 

Incoming calls connect, but outbound calls will not complete until the
Asterisk box is manually rebooted again.

 

Does anyone know of a solution for this issue?  Having to get up in the late
night to manually reboot the Asterisk box is getting old!

 

Thank you,

 

Claude

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110727/f7fa19ec/attachment.htm>


More information about the asterisk-users mailing list