From 509d3fe1012711a7389b10ca82f7dda93d84a1c7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 28 Jan 2010 17:46:57 +0000 Subject: [PATCH] small tweak to last commit git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16531 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index e312645b95..76b44c870d 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1264,6 +1264,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_nomedia(const char *uuid, switch_medi } 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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_nomedia(const char *uuid, switch_medi 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);