[asterisk-users] Lightning and thunder (Claude Hayn

Steve Edwards asterisk.org at sedwards.com
Wed Jul 27 19:02:06 CDT 2011


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       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list