]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-508
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Dec 2009 23:21:51 +0000 (23:21 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Dec 2009 23:21:51 +0000 (23:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15799 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_state_machine.c

index 396e6dea930fc33de4b97a299c1db789cb40a06b..b9a75316ffd0e8558ab0b467e4deb64ac86fb94a 100644 (file)
@@ -183,7 +183,7 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
                
        }
 
-       if (switch_channel_get_state(session->channel) == CS_EXECUTE) {
+       if (switch_channel_ready(session->channel) && switch_channel_get_state(session->channel) == CS_EXECUTE) {
                switch_channel_hangup(session->channel, SWITCH_CAUSE_NORMAL_CLEARING);          
        }
 }