mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
Add fsctl shutdown_check to see if we're currently shutting down
This commit is contained in:
1 parent
13a5f4eee0
commit
6bd82d1fb4
3 files changed
+8
-1
No files matched your search
@@ -1563,6 +1563,9 @@ SWITCH_STANDARD_API(ctl_function)
|
||||
} else if (!strcasecmp(argv[0], "save_history")) {
|
||||
switch_core_session_ctl(SCSC_SAVE_HISTORY, NULL);
|
||||
stream->write_function(stream, "+OK\n");
|
||||
} else if (!strcasecmp(argv[0], "shutdown_check")) {
|
||||
switch_core_session_ctl(SCSC_SHUTDOWN_CHECK, &arg);
|
||||
stream->write_function(stream, arg ? "true" : "false");
|
||||
} else if (!strcasecmp(argv[0], "shutdown")) {
|
||||
switch_session_ctl_t command = SCSC_SHUTDOWN;
|
||||
int x = 0;
|
||||
|
||||
Reference in new issue
Block a user