]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4561 more debug
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 27 Aug 2012 17:55:34 +0000 (12:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 27 Aug 2012 17:55:34 +0000 (12:55 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index fc7c195e5395246821291126abb3979bd4868c82..d7f6d2230364f99ec395803deab9d0c069c6921e 100644 (file)
@@ -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'",