git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16569
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
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);
}
}