]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4593 please test this and post logs if necessary
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 17:47:47 +0000 (12:47 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Sep 2012 17:47:47 +0000 (12:47 -0500)
src/switch_ivr_bridge.c

index f2aec42fdd91570124921542cc6190cd7f931806..590ebcea3436aa53ab4aedf999e886e506b88b4d 100644 (file)
@@ -588,7 +588,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_a), SWITCH_LOG_DEBUG, "BRIDGE THREAD DONE [%s]\n", switch_channel_get_name(chan_a));
        switch_channel_clear_flag(chan_a, CF_BRIDGED);
 
-       if (switch_channel_test_flag(chan_a, CF_LEG_HOLDING) && switch_channel_ready(chan_b)) {
+       if (switch_channel_test_flag(chan_a, CF_LEG_HOLDING) && switch_channel_ready(chan_b) && switch_channel_get_state(chan_b) != CS_PARK) {
                const char *ext = switch_channel_get_variable(chan_a, "hold_hangup_xfer_exten");
 
                switch_channel_stop_broadcast(chan_b);