mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
make help an api command, still need to add syntax and descriptions to the db so we can output those as well.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3002 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -112,14 +112,6 @@ static int switch_console_process(char *cmd)
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_CONSOLE, "FreeSwitch Version %s\n", SWITCH_VERSION_FULL);
|
||||
return 1;
|
||||
}
|
||||
if (!strcmp(cmd, "help")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE,
|
||||
"\n"
|
||||
"Valid Commands:\n\n"
|
||||
"version\n" "help - umm yeah..\n" "shutdown - stop the program\n\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((arg = strchr(cmd, '\r')) != 0 || (arg = strchr(cmd, '\n')) != 0 ) {
|
||||
*arg = '\0';
|
||||
arg = NULL;
|
||||
|
Reference in New Issue
Block a user