From 3e3d3e18ee0596a103903c8d39318f3ca9bcbe26 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 14 Aug 2008 16:29:26 +0000 Subject: [PATCH] small adjustment git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9293 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_bridge.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index a75249bf31..49ff9ff505 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -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; }