On Wed, 27 Jul 2011, Don Kelly wrote:

My wild guess is that the “old/tired PBX” is actually looking at the T1 before the Asterisk system is ready. If you can sneak in in the wee hours to simulate a power failure and bring one up at a time, you may be able to determine a power-up sequence that will work. Then you may be able to find a cost-justified solution that would delay power to one of the devices after a power failure.

How about writing a script that detects the lack of connectivity with the PBX using a command like:

        /usr/sbin/asterisk -r -x 'dahdi show status'

and parsing the output. If the 'error' condition exists, then execute commands like:

        /etc/init.d/asterisk stop
        /etc/init.d/dahdi stop
        /etc/init.d/dahdi start
        /etc/init.d/asterisk start

and then schedule the script to execute (via cron) every x minutes. The exact command to show the status of your connection and whether the dahdi restart is needed will be up to you to figure out.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000
--
_____________________________________________________________________
-- 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

Reply via email to