On 12-08-18 06:39 PM, Jan Blom wrote:
Hello,
Is there a way to detect, via cli or any other way, that Asterisk is in "graceful
shutdown" mode, not accepting any new calls? Or to put the question a different way, how can I
know that Asterisk has restarted again after the command "core restart graceful" in an
automated way?
Monitor the events on the AMI, you should see the following:
Event: Shutdown
Privilege: system,all
SequenceNumber: 0
File: asterisk.c
Line: 1773
Func: really_quit
Shutdown: Cleanly
Restart: True
Then you can build out your monitoring tools from it.
--
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter:
https://twitter.com/pabelanger
--
_____________________________________________________________________
-- 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