]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5003 --resolve
authorKen Rice <krice@freeswitch.org>
Wed, 10 Jul 2013 22:31:00 +0000 (17:31 -0500)
committerKen Rice <krice@freeswitch.org>
Wed, 10 Jul 2013 22:31:00 +0000 (17:31 -0500)
src/switch_ivr_bridge.c

index 9f903c6ba8258d6bceb1265aba6a6e743b5de99b..f9b22f8a4fc2f1a7d361273b436f10fc5a13dcd7 100644 (file)
@@ -874,6 +874,8 @@ static switch_status_t uuid_bridge_on_soft_execute(switch_core_session_t *sessio
                if (switch_ivr_wait_for_answer(session, other_session) != SWITCH_STATUS_SUCCESS) {
                        if (switch_true(switch_channel_get_variable(channel, "uuid_bridge_continue_on_cancel"))) {
                                switch_channel_set_state(channel, CS_EXECUTE);
+                        } else if (switch_true(switch_channel_get_variable(channel, "uuid_bridge_park_on_cancel"))) {
+                               switch_ivr_park_session(session);
                        } else if (!switch_channel_test_flag(channel, CF_TRANSFER)) {
                                switch_channel_hangup(channel, SWITCH_CAUSE_ORIGINATOR_CANCEL);
                        }