]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add notice to explain why a call hangs up when it's run out of things to do so people...
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Feb 2010 15:57:23 +0000 (15:57 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Feb 2010 15:57:23 +0000 (15:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16569 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_state_machine.c

index a088452070b467c0ac9887639ca381775157cb7c..ab80415de25beabe38ff2a66b613b5bea6077b25 100644 (file)
@@ -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);
        }
 }