From: Anthony Minessale Date: Mon, 7 Dec 2009 21:33:52 +0000 (+0000) Subject: add chan name to log lines X-Git-Tag: v1.0.6~1121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39f610a75b6e7c5dc107f64fadb05731f45c6c5e;p=thirdparty%2Ffreeswitch.git add chan name to log lines git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15836 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index d82cd8316a..917d3855a5 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -457,13 +457,13 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses if (switch_thread_self() != session->thread_id) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s thread mismatch skipping state handler.\n", - switch_channel_get_name(session_channel)); + switch_channel_get_name(session->channel)); return; } if (switch_test_flag(session, SSF_HANGUP)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s handler already called, skipping state handler.\n", - switch_channel_get_name(session_channel)); + switch_channel_get_name(session->channel)); return; }