mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 11:44:14 +00:00
add callee id to events and add global param verbose-channel-events and fsctl verbose_events [on|off] to globally configure verbose events
This commit is contained in:
1 parent
f818399a72
commit
19dca2e3e9
6 files changed
+82
-27
No files matched your search
@@ -1500,6 +1500,16 @@ SWITCH_STANDARD_API(ctl_function)
|
||||
} else if (!strcasecmp(argv[0], "crash")) {
|
||||
switch_core_session_ctl(SCSC_CRASH, NULL);
|
||||
stream->write_function(stream, "+OK\n");
|
||||
} else if (!strcasecmp(argv[0], "verbose_events")) {
|
||||
arg = -1;
|
||||
if (argv[1]) {
|
||||
arg = switch_true(argv[1]);
|
||||
}
|
||||
|
||||
switch_core_session_ctl(SCSC_VERBOSE_EVENTS, &arg);
|
||||
|
||||
stream->write_function(stream, "+OK verbose_events is %s \n", arg ? "on" : "off");
|
||||
|
||||
} else if (!strcasecmp(argv[0], "save_history")) {
|
||||
switch_core_session_ctl(SCSC_SAVE_HISTORY, NULL);
|
||||
stream->write_function(stream, "+OK\n");
|
||||
|
||||
Reference in new issue
Block a user