save history when stoping now

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16312 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2010-01-14 21:00:32 +00:00
parent 99b45eb1fb
commit f4a50a5e91
5 changed files with 29 additions and 1 deletions
@@ -1472,6 +1472,13 @@ SWITCH_STANDARD_API(ctl_function)
stream->write_function(stream, "+OK\n");
} else if (!strcasecmp(argv[0], "calibrate_clock")) {
switch_core_session_ctl(SCSC_CALIBRATE_CLOCK, NULL);
stream->write_function(stream, "+OK\n");
} else if (!strcasecmp(argv[0], "crash")) {
switch_core_session_ctl(SCSC_CRASH, NULL);
stream->write_function(stream, "+OK\n");
} 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")) {
switch_session_ctl_t command = SCSC_SHUTDOWN;
int x = 0;