[Freeswitch-svn] [commit] r9965 - in freeswitch/trunk/src/mod/applications: mod_commands mod_dptools

Freeswitch SVN brian at freeswitch.org
Sat Oct 11 15:53:36 EDT 2008


Author: brian
Date: Sat Oct 11 15:53:36 2008
New Revision: 9965

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c

Log:
mr. clean.. mr. clean... 

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	Sat Oct 11 15:53:36 2008
@@ -42,7 +42,6 @@
 SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load);
 SWITCH_MODULE_DEFINITION(mod_commands, mod_commands_load, NULL, NULL);
 
-
 SWITCH_STANDARD_API(user_data_function)
 {
 	switch_xml_t x_domain, xml = NULL, x_user = NULL, x_param, x_params;
@@ -196,10 +195,8 @@
 
 	switch_safe_free(data);
     return SWITCH_STATUS_SUCCESS;
-	
 }
 
-
 SWITCH_STANDARD_API(eval_function)
 {
 	char *expanded;
@@ -242,7 +239,6 @@
 	}
 
     return SWITCH_STATUS_SUCCESS;
-	
 }
 
 SWITCH_STANDARD_API(module_exists_function)
@@ -259,7 +255,6 @@
     return SWITCH_STATUS_SUCCESS;
 }
 
-
 SWITCH_STANDARD_API(url_encode_function)
 {
 	char *reply = "";
@@ -280,7 +275,6 @@
 
 }
 
-
 SWITCH_STANDARD_API(user_exists_function)
 {
 	return _find_user(cmd, session, stream, SWITCH_TRUE);
@@ -427,10 +421,8 @@
 	switch_safe_free(mydata);
 
 	return SWITCH_STATUS_SUCCESS;
-
 }
 
-
 SWITCH_STANDARD_API(regex_function)
 {
 	switch_regex_t *re = NULL;
@@ -834,7 +826,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 SWITCH_STANDARD_API(reload_function)
 {
 	const char *err;
@@ -1350,7 +1341,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 #define DISPLAY_SYNTAX "<uuid> <display>"
 SWITCH_STANDARD_API(uuid_display_function)
 {
@@ -2087,7 +2077,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 #define ALIAS_SYNTAX "add <alias> <command> | del [<alias>|*]"
 SWITCH_STANDARD_API(alias_function)
 {
@@ -2155,7 +2144,6 @@
 		goto end;
 	}
 
-
 	/* If you change the field qty or order of any of these select */
 	/* statements, you must also change show_callback and friends to match! */
 	if (!command) {
@@ -2703,7 +2691,6 @@
 	
 	switch_safe_free(mycmd);
 	return SWITCH_STATUS_SUCCESS;
-	
 }
 
 SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load)

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Sat Oct 11 15:53:36 2008
@@ -81,9 +81,7 @@
 		switch_caller_extension_add_application(session, extension, app, data);
 	}
 
-
 	return extension;
-
 }
 
 #define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR pause OR resume"
@@ -128,7 +126,6 @@
 	}
 }
 
-
 #define SAY_SYNTAX "<module_name> <say_type> <say_method> <text>"
 SWITCH_STANDARD_APP(say_function)
 {
@@ -351,7 +348,6 @@
 	}
 }
 
-
 #define threeway_SYNTAX "<uuid>"
 SWITCH_STANDARD_APP(three_way_function)
 {
@@ -681,7 +677,6 @@
 	switch_core_session_receive_message(session, &msg);
 }
 
-
 SWITCH_STANDARD_APP(set_function)
 {
 	char *var, *val = NULL;
@@ -1314,7 +1309,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 SWITCH_STANDARD_APP(sleep_function)
 {
 	switch_channel_t *channel = switch_core_session_get_channel(session);
@@ -1336,8 +1330,6 @@
 	}
 }
 
-
-
 SWITCH_STANDARD_APP(clear_speech_cache_function)
 {
 	switch_ivr_clear_speech_cache(session);
@@ -1464,8 +1456,6 @@
 	}
 
 	return SWITCH_STATUS_SUCCESS;
-
-
 }
 
 static switch_status_t hanguphook(switch_core_session_t *session)
@@ -1498,7 +1488,6 @@
 	int timelimit = 60;
 	switch_core_session_t *b_session = NULL;
 
-
 	channel = switch_core_session_get_channel(session);
 
 	if ((bond = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE))) {
@@ -1558,8 +1547,6 @@
 	switch_channel_set_variable(channel, SWITCH_HOLDING_UUID_VARIABLE, NULL);
 }
 
-
-
 SWITCH_STANDARD_APP(read_function)
 {
 	char *mydata;
@@ -1619,10 +1606,8 @@
 	}
 
 	switch_ivr_read(session, min_digits, max_digits, prompt_audio_file, var_name, digit_buffer, sizeof(digit_buffer), timeout, valid_terminators);
-
 }
 
-
 SWITCH_STANDARD_APP(playback_function)
 {
 	switch_input_args_t args = { 0 };
@@ -1942,7 +1927,6 @@
 	}
 }
 
-
 /* fake chan_error */
 switch_endpoint_interface_t *error_endpoint_interface;
 static switch_call_cause_t error_outgoing_channel(switch_core_session_t *session,
@@ -1966,7 +1950,6 @@
 	return cause;
 }
 
-
 /* fake chan_user */
 switch_endpoint_interface_t *user_endpoint_interface;
 static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
@@ -2137,7 +2120,6 @@
 	return cause;
 }
 
-
 #define HOLD_SYNTAX "[<display message>]"
 SWITCH_STANDARD_APP(hold_function)
 {
@@ -2183,7 +2165,6 @@
 	} 
 	
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Usage: %s\n", WAIT_FOR_SILENCE_SYNTAX);
-
 }
 
 static switch_status_t event_chat_send(char *proto, char *from, char *to, char *subject, char *body, char *hint)
@@ -2214,10 +2195,8 @@
 	return SWITCH_STATUS_MEMERR;
 }
 
-
 static switch_status_t api_chat_send(char *proto, char *from, char *to, char *subject, char *body, char *hint)
 {
-
 	if (to) { 
 		const char *v;
 		switch_stream_handle_t stream = { 0 };
@@ -2253,7 +2232,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 #define SPEAK_DESC "Speak text to a channel via the tts interface"
 #define DISPLACE_DESC "Displace audio from a file to the channels input"
 #define SESS_REC_DESC "Starts a background recording of the entire session"
@@ -2287,7 +2265,6 @@
 	user_endpoint_interface->interface_name = "USER";
 	user_endpoint_interface->io_routines = &user_io_routines;
 
-
 	SWITCH_ADD_CHAT(chat_interface, "event", event_chat_send);
 	SWITCH_ADD_CHAT(chat_interface, "api", api_chat_send);
 	
@@ -2398,7 +2375,6 @@
 	return SWITCH_STATUS_SUCCESS;
 }
 
-
 /* For Emacs:
  * Local Variables:
  * mode:c



More information about the Freeswitch-svn mailing list