From 90e637cc2fcd16115aae6b687349357d05a60482 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Aug 2012 12:55:34 -0500 Subject: [PATCH] FS-4561 more debug --- src/mod/endpoints/mod_sofia/sofia_presence.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index fc7c195e53..d7f6d22303 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1224,15 +1224,16 @@ static void actual_sofia_presence_event_handler(switch_event_t *event) continue; } + + if (mod_sofia_globals.debug_sla > 1) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SLA EVENT:\n"); + DUMP_EVENT(event); + + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "CHECK CALL_INFO [%s]\n", switch_str_nil(call_info)); + } + if (call_info) { -#if 1 - if (mod_sofia_globals.debug_sla > 1) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SLA EVENT:\n"); - DUMP_EVENT(event); - } -#endif - if (uuid) { sql = switch_mprintf("update sip_dialogs set call_info='%q',call_info_state='%q' where " "hostname='%q' and profile_name='%q' and uuid='%q'",