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/63fc669a/attachment.htm>
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/6203500e/attachment.htm>
On Wed, Jul 27, 2011 at 9:44 AM, Claude Hayn <chayn123 at 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 > 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, > > ClaudeYou may want to look at http://www.networkupstools.org/ to control you power down in a graceful manner. -- ~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~
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 > juice) ><snip>> > 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! >Perhaps an other suggestion... Re-install asterisk on a other piece of hardware. There are small boxes that consume less than 5 Watt. If you put that on your UPS, it will last longer. Other one, ever thought of an alternative power source? Either solar of conventional? hw
gerbals Sent from my iPhone On Jul 27, 2011, at 5:32 PM, Hans Witvliet <hwit at 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 >> juice) >> > <snip> >> >> 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! >> > > Perhaps an other suggestion... > Re-install asterisk on a other piece of hardware. > There are small boxes that consume less than 5 Watt. > If you put that on your UPS, it will last longer. > > Other one, ever thought of an alternative power source? > Either solar of conventional? > > hw > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
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 reload". I started wondering what was going on and had a look in the logs. I noticed phone calls being processed up to certain points and then just being hungup (typically at a GoTo). The point the phone call failed doesn't seem to be the same each time the system's are restarted. My suggestion would be to have a look in the logs (/var/log/asterisk/messages) and look for a few of the failing calls. I don't know what system (Trixbox / FreePBX / hand compiled) you are running but the logs should give you something to start investigating. I would be surprised if you are having the same issue but it is possible. Also, are your incoming calls routed via T1 or the ITSP? If the incoming calls are coming through the T1 the likelihood the problem is with the PABX is reduced. Hope this helps. Kind Regards Stuart On 27 July 2011 20:44, Claude Hayn <chayn123 at 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 > 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 > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >