mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
add fsctl sql start/stop for standby controls
This commit is contained in:
1 parent
cc48015709
commit
46fee25dad
5 files changed
+176
-83
No files matched your search
@@ -1915,6 +1915,16 @@ SWITCH_STANDARD_API(ctl_function)
|
||||
switch_core_session_ctl(SCSC_DEBUG_SQL, &x);
|
||||
stream->write_function(stream, "+OK SQL DEBUG [%s]\n", x ? "on" : "off");
|
||||
|
||||
} else if (!strcasecmp(argv[0], "sql")) {
|
||||
if (argv[1]) {
|
||||
int x = 0;
|
||||
if (!strcasecmp(argv[1], "start")) {
|
||||
x = 1;
|
||||
}
|
||||
switch_core_session_ctl(SCSC_SQL, &x);
|
||||
stream->write_function(stream, "+OK\n");
|
||||
}
|
||||
|
||||
} else if (!strcasecmp(argv[0], "reclaim_mem")) {
|
||||
switch_core_session_ctl(SCSC_RECLAIM, &arg);
|
||||
stream->write_function(stream, "+OK\n");
|
||||
|
||||
Reference in new issue
Block a user