]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add uuid_bridge_continue_on_cancel var to move on in dialplan if uuid_bridged channel...
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 19:15:52 +0000 (19:15 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 19:15:52 +0000 (19:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17044 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_bridge.c

index b5d7963dc985e77f8b453992bd5682e4bd1e6f11..7df8601f2237b6180df9d818ccb23f64768ee0df 100644 (file)
@@ -750,7 +750,11 @@ 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) {
                        switch_core_session_rwunlock(other_session);
-                       switch_channel_hangup(channel, SWITCH_CAUSE_ORIGINATOR_CANCEL);
+                       if (switch_true(switch_channel_get_variable(channel, "uuid_bridge_continue_on_cancel"))) {
+                               switch_channel_set_state(channel, CS_EXECUTE);
+                       } else {
+                               switch_channel_hangup(channel, SWITCH_CAUSE_ORIGINATOR_CANCEL);
+                       }
                        return SWITCH_STATUS_FALSE;
                }