small adjustment

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9293 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-08-14 16:29:26 +00:00
parent 642ad50e83
commit 3e3d3e18ee
1 changed files with 3 additions and 6 deletions

View File

@ -522,6 +522,9 @@ static switch_status_t uuid_bridge_on_soft_execute(switch_core_session_t *sessio
}
switch_ivr_multi_threaded_bridge(session, other_session, NULL, NULL, NULL);
if (switch_channel_get_state(channel) < CS_HANGUP) {
switch_channel_set_state(channel, CS_EXECUTE);
}
switch_core_session_rwunlock(other_session);
} else {
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
@ -821,12 +824,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
}
}
state = switch_channel_get_state(caller_channel);
if (state == CS_SOFT_EXECUTE || state == CS_PARK) {
switch_channel_set_state(caller_channel, CS_EXECUTE);
}
return status;
}