[Freeswitch-svn] [commit] r11073 - freeswitch/trunk/src/mod/applications/mod_commands
FreeSWITCH SVN
silik0n at freeswitch.org
Tue Jan 13 15:22:04 PST 2009
Author: silik0n
Date: Tue Jan 13 18:22:04 2009
New Revision: 11073
Log:
clean up formatting
Modified:
freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Tue Jan 13 18:22:04 2009
@@ -253,7 +253,7 @@
switch_event_destroy(¶ms);
}
- end:
+ end:
switch_safe_free(group_name);
@@ -485,7 +485,7 @@
stream->write_function(stream, "%s", digest);
}
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
SWITCH_STANDARD_API(url_decode_function)
@@ -502,7 +502,7 @@
stream->write_function(stream, "%s", reply);
switch_safe_free(data);
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
SWITCH_STANDARD_API(eval_function)
@@ -546,7 +546,7 @@
free(expanded);
}
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
SWITCH_STANDARD_API(module_exists_function)
@@ -559,7 +559,7 @@
}
}
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
SWITCH_STANDARD_API(domain_exists_function)
@@ -594,7 +594,7 @@
stream->write_function(stream, "%s", reply);
switch_safe_free(data);
- return SWITCH_STATUS_SUCCESS;
+ return SWITCH_STATUS_SUCCESS;
}
@@ -1151,7 +1151,7 @@
p++;
}
}
- end:
+ end:
if (switch_strlen_zero(cmd)) {
stream->write_function(stream, "-USAGE: %s\n", UNLOAD_SYNTAX);
@@ -1194,7 +1194,7 @@
p++;
}
}
- end:
+ end:
if (switch_strlen_zero(cmd)) {
stream->write_function(stream, "-USAGE: %s\n", UNLOAD_SYNTAX);
@@ -2270,7 +2270,7 @@
}
}
- bad:
+ bad:
stream->write_function(stream, "-ERR Invalid syntax. USAGE: %s\n", SCHED_SYNTAX);
@@ -2682,7 +2682,7 @@
holder.stream->write_function(holder.stream, "-ERR Cannot find format %s\n", as);
}
- end:
+ end:
switch_safe_free(mydata);
@@ -3100,17 +3100,17 @@
#define SYSTEM_SYNTAX "<command>"
SWITCH_STANDARD_API(system_function)
{
- if (switch_strlen_zero(cmd)) {
- stream->write_function(stream, "-USAGE: %s\n", SYSTEM_SYNTAX);
- return SWITCH_STATUS_SUCCESS;
- }
-
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Executing command: %s\n", cmd);
- if (switch_system(cmd, SWITCH_TRUE) < 0) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Failed to execute command: %s\n", cmd);
- }
- stream->write_function(stream, "+OK\n");
- return SWITCH_STATUS_SUCCESS;
+ if (switch_strlen_zero(cmd)) {
+ stream->write_function(stream, "-USAGE: %s\n", SYSTEM_SYNTAX);
+ return SWITCH_STATUS_SUCCESS;
+ }
+
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Executing command: %s\n", cmd);
+ if (switch_system(cmd, SWITCH_TRUE) < 0) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Failed to execute command: %s\n", cmd);
+ }
+ stream->write_function(stream, "+OK\n");
+ return SWITCH_STATUS_SUCCESS;
}
SWITCH_STANDARD_API(strftime_tz_api_function)
@@ -3246,7 +3246,7 @@
switch_console_set_complete("add fsctl shutdown restart asap");
switch_console_set_complete("add fsctl shutdown cancel");
switch_console_set_complete("add fsctl sps");
- switch_console_set_complete("add fsctl sync_clock");
+ switch_console_set_complete("add fsctl sync_clock");
switch_console_set_complete("add fsctl reclaim_mem");
switch_console_set_complete("add fsctl max_sessions");
switch_console_set_complete("add fsctl max_dtmf_duration");
More information about the Freeswitch-svn
mailing list