]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mr. clean.. mr. clean...
authorBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 19:53:36 +0000 (19:53 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 19:53:36 +0000 (19:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9965 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c
src/mod/applications/mod_dptools/mod_dptools.c

index 233564d2962824b2a4cad5163dc19495b253edb7..c3ec672142ab1c48191c91a938f482ff062fae29 100644 (file)
@@ -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_STANDARD_API(url_decode_function)
 
        switch_safe_free(data);
     return SWITCH_STATUS_SUCCESS;
-       
 }
 
-
 SWITCH_STANDARD_API(eval_function)
 {
        char *expanded;
@@ -242,7 +239,6 @@ SWITCH_STANDARD_API(eval_function)
        }
 
     return SWITCH_STATUS_SUCCESS;
-       
 }
 
 SWITCH_STANDARD_API(module_exists_function)
@@ -259,7 +255,6 @@ SWITCH_STANDARD_API(module_exists_function)
     return SWITCH_STATUS_SUCCESS;
 }
 
-
 SWITCH_STANDARD_API(url_encode_function)
 {
        char *reply = "";
@@ -280,7 +275,6 @@ SWITCH_STANDARD_API(url_encode_function)
 
 }
 
-
 SWITCH_STANDARD_API(user_exists_function)
 {
        return _find_user(cmd, session, stream, SWITCH_TRUE);
@@ -427,10 +421,8 @@ SWITCH_STANDARD_API(acl_function)
        switch_safe_free(mydata);
 
        return SWITCH_STATUS_SUCCESS;
-
 }
 
-
 SWITCH_STANDARD_API(regex_function)
 {
        switch_regex_t *re = NULL;
@@ -834,7 +826,6 @@ SWITCH_STANDARD_API(unload_function)
        return SWITCH_STATUS_SUCCESS;
 }
 
-
 SWITCH_STANDARD_API(reload_function)
 {
        const char *err;
@@ -1350,7 +1341,6 @@ SWITCH_STANDARD_API(uuid_hold_function)
        return SWITCH_STATUS_SUCCESS;
 }
 
-
 #define DISPLAY_SYNTAX "<uuid> <display>"
 SWITCH_STANDARD_API(uuid_display_function)
 {
@@ -2087,7 +2077,6 @@ SWITCH_STANDARD_API(complete_function)
        return SWITCH_STATUS_SUCCESS;
 }
 
-
 #define ALIAS_SYNTAX "add <alias> <command> | del [<alias>|*]"
 SWITCH_STANDARD_API(alias_function)
 {
@@ -2155,7 +2144,6 @@ SWITCH_STANDARD_API(show_function)
                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_STANDARD_API(hupall_api_function)
        
        switch_safe_free(mycmd);
        return SWITCH_STATUS_SUCCESS;
-       
 }
 
 SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load)
index a483c4e889fe6c0054e49f4889fbd1ea27ed99aa..de6d66f2d1e7e11b81d755dcddafa4b264eee3fd 100644 (file)
@@ -81,9 +81,7 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt)
                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 @@ SWITCH_STANDARD_APP(exe_function)
        }
 }
 
-
 #define SAY_SYNTAX "<module_name> <say_type> <say_method> <text>"
 SWITCH_STANDARD_APP(say_function)
 {
@@ -351,7 +348,6 @@ SWITCH_STANDARD_APP(eavesdrop_function)
        }
 }
 
-
 #define threeway_SYNTAX "<uuid>"
 SWITCH_STANDARD_APP(three_way_function)
 {
@@ -681,7 +677,6 @@ SWITCH_STANDARD_APP(deflect_function)
        switch_core_session_receive_message(session, &msg);
 }
 
-
 SWITCH_STANDARD_APP(set_function)
 {
        char *var, *val = NULL;
@@ -1314,7 +1309,6 @@ static switch_status_t on_dtmf(switch_core_session_t *session, void *input, swit
        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(sleep_function)
        }
 }
 
-
-
 SWITCH_STANDARD_APP(clear_speech_cache_function)
 {
        switch_ivr_clear_speech_cache(session);
@@ -1464,8 +1456,6 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input,
        }
 
        return SWITCH_STATUS_SUCCESS;
-
-
 }
 
 static switch_status_t hanguphook(switch_core_session_t *session)
@@ -1498,7 +1488,6 @@ SWITCH_STANDARD_APP(att_xfer_function)
        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_STANDARD_APP(att_xfer_function)
        switch_channel_set_variable(channel, SWITCH_HOLDING_UUID_VARIABLE, NULL);
 }
 
-
-
 SWITCH_STANDARD_APP(read_function)
 {
        char *mydata;
@@ -1619,10 +1606,8 @@ SWITCH_STANDARD_APP(read_function)
        }
 
        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 @@ SWITCH_STANDARD_APP(audio_bridge_function)
        }
 }
 
-
 /* 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 @@ static switch_call_cause_t error_outgoing_channel(switch_core_session_t *session
        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 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
        return cause;
 }
 
-
 #define HOLD_SYNTAX "[<display message>]"
 SWITCH_STANDARD_APP(hold_function)
 {
@@ -2183,7 +2165,6 @@ SWITCH_STANDARD_APP(wait_for_silence_function)
        } 
        
        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 @@ static switch_status_t event_chat_send(char *proto, char *from, char *to, char *
        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 @@ static switch_status_t api_chat_send(char *proto, char *from, char *to, char *su
        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 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
        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 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
        return SWITCH_STATUS_SUCCESS;
 }
 
-
 /* For Emacs:
  * Local Variables:
  * mode:c