Revision
16569
Author
anthm
Date
2010-02-04 09:57:23 -0600 (Thu, 04 Feb 2010)

Log Message

add notice to explain why a call hangs up when it's run out of things to do so people stop reporting it as a bug

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_core_state_machine.c (16568 => 16569)


--- freeswitch/trunk/src/switch_core_state_machine.c	2010-02-04 15:50:04 UTC (rev 16568)
+++ freeswitch/trunk/src/switch_core_state_machine.c	2010-02-04 15:57:23 UTC (rev 16569)
@@ -184,7 +184,9 @@
 	}
 
 	if (switch_channel_ready(session->channel) && switch_channel_get_state(session->channel) == CS_EXECUTE) {
-		switch_channel_hangup(session->channel, SWITCH_CAUSE_NORMAL_CLEARING);		
+		switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "%s has executed the last dialplan instruction, hanging up.\n", 
+						  switch_channel_get_name(session->channel));
+		switch_channel_hangup(session->channel, SWITCH_CAUSE_NORMAL_CLEARING);
 	}
 }