git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5815
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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;
if (state != laststate || state == CS_HANGUP || exception) {
int index = 0;
int proceed = 1;
-
+
switch (state) {
case CS_NEW: /* Just created, Waiting for first instructions */