]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
small adjustment
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Aug 2008 16:29:26 +0000 (16:29 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Aug 2008 16:29:26 +0000 (16:29 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9293 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_bridge.c

index a75249bf31e1a5965f184980e3cbb9c8463b70c6..49ff9ff505b45f03b99719cb35fe857a6d2d439a 100644 (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;
 }