提交 ab3b8558 authored 作者: Brian West's avatar Brian West

whitespace cleanup...

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7383 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d2a0183e
...@@ -47,7 +47,6 @@ static switch_status_t exec_app(switch_core_session_t *session, char *app, char ...@@ -47,7 +47,6 @@ static switch_status_t exec_app(switch_core_session_t *session, char *app, char
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
SWITCH_STANDARD_APP(dial_function) SWITCH_STANDARD_APP(dial_function)
{ {
int argc; int argc;
...@@ -77,7 +76,6 @@ SWITCH_STANDARD_APP(dial_function) ...@@ -77,7 +76,6 @@ SWITCH_STANDARD_APP(dial_function)
goto ok; goto ok;
} }
error: error:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error!\n");
...@@ -85,7 +83,6 @@ SWITCH_STANDARD_APP(dial_function) ...@@ -85,7 +83,6 @@ SWITCH_STANDARD_APP(dial_function)
ok: ok:
return; return;
} }
SWITCH_STANDARD_APP(avoid_function) SWITCH_STANDARD_APP(avoid_function)
...@@ -107,8 +104,6 @@ SWITCH_STANDARD_APP(avoid_function) ...@@ -107,8 +104,6 @@ SWITCH_STANDARD_APP(avoid_function)
memset((void *) y, 0, 1000); memset((void *) y, 0, 1000);
} }
SWITCH_STANDARD_APP(goto_function) SWITCH_STANDARD_APP(goto_function)
{ {
int argc; int argc;
...@@ -118,7 +113,6 @@ SWITCH_STANDARD_APP(goto_function) ...@@ -118,7 +113,6 @@ SWITCH_STANDARD_APP(goto_function)
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
assert(channel != NULL); assert(channel != NULL);
if (data && (mydata = switch_core_session_strdup(session, data))) { if (data && (mydata = switch_core_session_strdup(session, data))) {
if ((argc = switch_separate_string(mydata, '|', argv, (sizeof(argv) / sizeof(argv[0])))) < 1) { if ((argc = switch_separate_string(mydata, '|', argv, (sizeof(argv) / sizeof(argv[0])))) < 1) {
...@@ -128,7 +122,6 @@ SWITCH_STANDARD_APP(goto_function) ...@@ -128,7 +122,6 @@ SWITCH_STANDARD_APP(goto_function)
switch_ivr_session_transfer(session, argv[1], "asterisk", argv[0]); switch_ivr_session_transfer(session, argv[1], "asterisk", argv[0]);
goto ok; goto ok;
} }
error: error:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error!\n");
...@@ -136,10 +129,8 @@ SWITCH_STANDARD_APP(goto_function) ...@@ -136,10 +129,8 @@ SWITCH_STANDARD_APP(goto_function)
ok: ok:
return; return;
} }
SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt) SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
{ {
switch_caller_extension_t *extension = NULL; switch_caller_extension_t *extension = NULL;
...@@ -316,7 +307,6 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt) ...@@ -316,7 +307,6 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
return extension; return extension;
} }
/* fake chan_sip */ /* fake chan_sip */
switch_endpoint_interface_t *sip_endpoint_interface; switch_endpoint_interface_t *sip_endpoint_interface;
static switch_call_cause_t sip_outgoing_channel(switch_core_session_t *session, static switch_call_cause_t sip_outgoing_channel(switch_core_session_t *session,
...@@ -379,9 +369,6 @@ static char *key() ...@@ -379,9 +369,6 @@ static char *key()
return WE_DONT_NEED_NO_STINKIN_KEY; return WE_DONT_NEED_NO_STINKIN_KEY;
} }
SWITCH_MODULE_LOAD_FUNCTION(mod_dialplan_asterisk_load) SWITCH_MODULE_LOAD_FUNCTION(mod_dialplan_asterisk_load)
{ {
switch_dialplan_interface_t *dp_interface; switch_dialplan_interface_t *dp_interface;
...@@ -408,7 +395,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dialplan_asterisk_load) ...@@ -408,7 +395,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dialplan_asterisk_load)
sip_endpoint_interface->interface_name = "SIP"; sip_endpoint_interface->interface_name = "SIP";
sip_endpoint_interface->io_routines = &sip_io_routines; sip_endpoint_interface->io_routines = &sip_io_routines;
/* fake chan_iax2 facade */ /* fake chan_iax2 facade */
iax2_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE); iax2_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE);
iax2_endpoint_interface->interface_name = "IAX2"; iax2_endpoint_interface->interface_name = "IAX2";
......
...@@ -131,7 +131,6 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * ...@@ -131,7 +131,6 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
assert(re != NULL); assert(re != NULL);
} }
for (xaction = switch_xml_child(xcond, "action"); xaction; xaction = xaction->next) { for (xaction = switch_xml_child(xcond, "action"); xaction; xaction = xaction->next) {
char *application = (char *) switch_xml_attr_soft(xaction, "application"); char *application = (char *) switch_xml_attr_soft(xaction, "application");
char *data = NULL; char *data = NULL;
...@@ -221,7 +220,6 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt) ...@@ -221,7 +220,6 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
if (!caller_profile->context) { if (!caller_profile->context) {
caller_profile->context = "default"; caller_profile->context = "default";
} }
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Processing %s->%s!\n", caller_profile->caller_id_name, caller_profile->destination_number); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Processing %s->%s!\n", caller_profile->caller_id_name, caller_profile->destination_number);
...@@ -274,7 +272,6 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt) ...@@ -274,7 +272,6 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
xexten = xexten->next; xexten = xexten->next;
} }
switch_xml_free(xml); switch_xml_free(xml);
xml = NULL; xml = NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论