From: Anthony Minessale Date: Thu, 4 Feb 2010 15:57:23 +0000 (+0000) Subject: add notice to explain why a call hangs up when it's run out of things to do so people... X-Git-Tag: v1.0.6~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f484e28e22f2d23d51ee83d249fce7568cd7cf0a;p=thirdparty%2Ffreeswitch.git 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 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16569 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index a088452070..ab80415de2 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -184,7 +184,9 @@ static void switch_core_standard_on_execute(switch_core_session_t *session) } 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); } }