[core] Add SHUTDOWN_REQUESTED event. Bind to this event to know when ASAP or elegant shutdown has been requested.

This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2019-12-31 03:11:12 +04:00
1 parent 9248aa05ec
commit 562079376a
3 files changed
+8 -1

No files matched your search

+2
View File
@@ -2048,6 +2048,7 @@ typedef uint32_t switch_io_flag_t;
SWITCH_EVENT_CALL_SETUP_RESULT
SWITCH_EVENT_CALL_DETAIL
SWITCH_EVENT_DEVICE_STATE
SWITCH_EVENT_SHUTDOWN_REQUESTED - Shutdown of the system has been requested
SWITCH_EVENT_ALL - All events at once
</pre>
@@ -2143,6 +2144,7 @@ typedef enum {
SWITCH_EVENT_CALL_DETAIL,
SWITCH_EVENT_DEVICE_STATE,
SWITCH_EVENT_TEXT,
SWITCH_EVENT_SHUTDOWN_REQUESTED,
SWITCH_EVENT_ALL
} switch_event_types_t;