From f41020a625ab2feac7a75e3a9a2df88ae7868777 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Tue, 29 Nov 2011 08:28:10 -0600
Subject: [PATCH] FS-3727 --resolve

---
 src/switch_ivr_bridge.c    | 4 ++--
 src/switch_ivr_originate.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c
index c2ad565cdb..3c85c4b421 100644
--- a/src/switch_ivr_bridge.c
+++ b/src/switch_ivr_bridge.c
@@ -1180,8 +1180,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
 		const char *app, *data;
 		
 		if (switch_channel_get_state(peer_channel) == CS_CONSUME_MEDIA) {
-			switch_channel_set_state(peer_channel, CS_RESET);
-			switch_channel_wait_for_state(peer_channel, caller_channel, CS_RESET);
+			switch_channel_set_state(peer_channel, CS_HIBERNATE);
+			switch_channel_wait_for_state(peer_channel, caller_channel, CS_HIBERNATE);
 		}
 
 		if (!switch_channel_ready(caller_channel)) {
diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c
index aeb41e5e43..50c829f379 100644
--- a/src/switch_ivr_originate.c
+++ b/src/switch_ivr_originate.c
@@ -3511,8 +3511,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
 		switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
 
 		if (switch_channel_get_state(bchan) == CS_CONSUME_MEDIA) {
-			switch_channel_set_state(bchan, CS_RESET);
-			switch_channel_wait_for_state(bchan, caller_channel, CS_RESET);
+			switch_channel_set_state(bchan, CS_HIBERNATE);
+			switch_channel_wait_for_state(bchan, caller_channel, CS_HIBERNATE);
 		}
 
 		if (session && caller_channel) {