From: Anthony Minessale Date: Fri, 4 Dec 2009 23:21:51 +0000 (+0000) Subject: FSCORE-508 X-Git-Tag: v1.0.6~1152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceb68513b00ec2754883cd4a156b73170865e742;p=thirdparty%2Ffreeswitch.git FSCORE-508 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15799 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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); } }