On Tue, 18 Aug 2009, jonas kellens wrote:

> Would it be possible to execute some kind of script when for example
> Asterisk restarts... or stops... ?
>
> How can one read the status of Asterisk so that when the service is
> stopped I could be notified by mail, by text message,... ?
>
> I don't know how to read the status of Asterisk (or the change of
> status) in a bash-script.

>From a 1.2 Luddite...

Look at the [/usr/sbin/]safe_asterisk script. It didn't serve my 
purposes, but "inspired" me to write a script that did.

Basically, you create a process that creates the process that runs 
Asterisk so it can do something if Asterisk exits.

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

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to