From 4ce06aa5d15b01b760daad415eb3ae5e3f647d7f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 28 Apr 2009 15:11:38 +0000 Subject: [PATCH] fix win32 build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13178 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_state_machine.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index c8440f1d46..26036ff706 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -573,6 +573,7 @@ SWITCH_DECLARE(void) switch_core_session_reporting_state(switch_core_session_t * int do_extra_handlers = 1; int silly = 0; int index = 0; + const char *var = switch_channel_get_variable(session->channel, SWITCH_PROCESS_CDR_VARIABLE); if (switch_channel_test_flag(session->channel, CF_REPORTING)) { return; @@ -589,9 +590,6 @@ SWITCH_DECLARE(void) switch_core_session_reporting_state(switch_core_session_t * driver_state_handler = endpoint_interface->state_handler; switch_assert(driver_state_handler != NULL); - - const char *var = switch_channel_get_variable(session->channel, SWITCH_PROCESS_CDR_VARIABLE); - if (!switch_strlen_zero(var)) { if (!strcasecmp(var, "a_only")) { if (switch_channel_get_originator_caller_profile(session->channel)) {