[Freeswitch-svn] [commit] r4407 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Feb 27 17:52:37 EST 2007


Author: anthm
Date: Tue Feb 27 17:52:37 2007
New Revision: 4407

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
be more specific

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Tue Feb 27 17:52:37 2007
@@ -2552,6 +2552,14 @@
 	return status;
 }
 
+static char *SIG_NAMES[] = {
+	"NONE",
+	"KILL",
+	"XFER",
+    "BREAK",
+	NULL
+};
+
 SWITCH_DECLARE(switch_status_t) switch_core_session_perform_kill_channel(switch_core_session_t *session, 
                                                                          const char *file, 
                                                                          const char *func, 
@@ -2561,8 +2569,8 @@
 	switch_io_event_hook_kill_channel_t *ptr;
 	switch_status_t status = SWITCH_STATUS_FALSE;
 	
-	switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, SWITCH_LOG_INFO, "Kill %s [%d]\n", switch_channel_get_name(session->channel), sig);
-
+	switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, SWITCH_LOG_INFO, "Kill %s [%s]\n", switch_channel_get_name(session->channel), SIG_NAMES[sig]);
+	
 	if (session->endpoint_interface->io_routines->kill_channel) {
 		if ((status = session->endpoint_interface->io_routines->kill_channel(session, sig)) == SWITCH_STATUS_SUCCESS) {
 			for (ptr = session->event_hooks.kill_channel; ptr; ptr = ptr->next) {



More information about the Freeswitch-svn mailing list