From: Anthony Minessale Date: Fri, 5 Oct 2007 16:09:47 +0000 (+0000) Subject: fix (you want this) X-Git-Tag: v1.0-beta2~550 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb530a6f3bcee5f8e2fa5ebb5117d617c514779;p=thirdparty%2Ffreeswitch.git fix (you want this) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5815 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 0c77ae47fb..d94ec009c4 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -374,6 +374,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) while ((state = switch_channel_get_state(session->channel)) != CS_DONE) { uint8_t exception = 0; + midstate = state; if (switch_channel_test_flag(session->channel, CF_REPEAT_STATE)) { switch_channel_clear_flag(session->channel, CF_REPEAT_STATE); exception = 1; @@ -381,7 +382,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) if (state != laststate || state == CS_HANGUP || exception) { int index = 0; int proceed = 1; - + switch (state) { case CS_NEW: /* Just created, Waiting for first instructions */