From ceb68513b00ec2754883cd4a156b73170865e742 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 4 Dec 2009 23:21:51 +0000 Subject: [PATCH] FSCORE-508 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15799 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_state_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 396e6dea93..b9a75316ff 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -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); } }