Revision
17044
Author
anthm
Date
2010-03-18 14:15:52 -0500 (Thu, 18 Mar 2010)

Log Message

add uuid_bridge_continue_on_cancel var to move on in dialplan if uuid_bridged channel hits a bad b-leg

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_bridge.c (17043 => 17044)


--- freeswitch/trunk/src/switch_ivr_bridge.c	2010-03-18 18:48:58 UTC (rev 17043)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	2010-03-18 19:15:52 UTC (rev 17044)
@@ -750,7 +750,11 @@
 
 		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;
 		}