Revision
16531
Author
anthm
Date
2010-01-28 11:46:57 -0600 (Thu, 28 Jan 2010)

Log Message

small tweak to last commit

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr.c (16530 => 16531)


--- freeswitch/trunk/src/switch_ivr.c	2010-01-28 17:10:23 UTC (rev 16530)
+++ freeswitch/trunk/src/switch_ivr.c	2010-01-28 17:46:57 UTC (rev 16531)
@@ -1264,6 +1264,7 @@
 		}
 
 		if ((flags & SMF_FORCE) || !switch_channel_test_flag(channel, CF_PROXY_MODE)) {
+			switch_channel_set_flag(channel, CF_RESET);
 			switch_channel_set_flag(channel, CF_REDIRECT);
 			switch_channel_set_state(channel, CS_PARK);
 			switch_channel_set_flag(channel, CF_TRANSFER);
@@ -1273,7 +1274,7 @@
 			if ((flags & SMF_REBRIDGE) && (other_uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE)) &&
 				(other_session = switch_core_session_locate(other_uuid))) {
 				other_channel = switch_core_session_get_channel(other_session);
-
+				switch_channel_set_flag(other_channel, CF_RESET);
 				switch_channel_set_flag(other_channel, CF_REDIRECT);
 				switch_channel_set_state(other_channel, CS_PARK);
 				switch_channel_set_flag(other_channel, CF_TRANSFER);