mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
refactor dialplan logging lines and consolidate some logic for bypass_media mode when the a leg has audio in advance
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12479 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1299,10 +1299,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
|
||||
app = application_interface->interface_name;
|
||||
|
||||
if (arg && (expanded = switch_channel_expand_variables(session->channel, arg)) != arg) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s Expanded String %s(%s)\n", switch_channel_get_name(session->channel), app, expanded);
|
||||
if (arg) {
|
||||
expanded = switch_channel_expand_variables(session->channel, arg);
|
||||
}
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_DEBUG, "EXECUTE %s %s(%s)\n",
|
||||
switch_channel_get_name(session->channel), app, switch_str_nil(expanded));
|
||||
|
||||
if ((var = switch_channel_get_variable(session->channel, "verbose_presence")) && switch_true(var)) {
|
||||
char *myarg = NULL;
|
||||
if (expanded) {
|
||||
@@ -1318,10 +1321,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
}
|
||||
}
|
||||
|
||||
if (!arg) {
|
||||
arg = "";
|
||||
}
|
||||
|
||||
if (!(var = switch_channel_get_variable(session->channel, SWITCH_DISABLE_APP_LOG_VARIABLE)) || (!(switch_true(var)))) {
|
||||
log = switch_core_session_alloc(session, sizeof(*log));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user