]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
small fix from over the phone from tony
authorBrian West <brian@freeswitch.org>
Wed, 1 Mar 2006 23:30:58 +0000 (23:30 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 1 Mar 2006 23:30:58 +0000 (23:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@721 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 4a98b8874659c72930b406afc88ea1a8b8bcaf60..02c9f748c44df4ad5e2ab8b2e127d0f73e12d964 100644 (file)
@@ -801,7 +801,9 @@ static switch_status audio_bridge_on_hangup(switch_core_session *session)
        //switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
        if (switch_channel_test_flag(channel, CF_ORIGINATOR) && !switch_channel_test_flag(other_channel, CF_TRANSFER)) {
                switch_core_session_kill_channel(other_session, SWITCH_SIG_KILL);
+               switch_channel_hangup(other_channel);
        }
+
        return SWITCH_STATUS_SUCCESS;
 }
 
@@ -858,9 +860,13 @@ SWITCH_DECLARE(switch_status) switch_ivr_multi_threaded_bridge(switch_core_sessi
        int stream_id = 0;
        switch_frame *read_frame;
 
+
+
        caller_channel = switch_core_session_get_channel(session);
        assert(caller_channel != NULL);
 
+       switch_channel_set_flag(caller_channel, CF_ORIGINATOR);
+
        peer_channel = switch_core_session_get_channel(peer_session);
        assert(peer_channel != NULL);