From 678c7c90b58a64ffc40ac55109aa0ac5534cab31 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 24 May 2010 19:33:01 -0500 Subject: [PATCH] set CF_REDIRECT to avoid hangup_after_bridge --- src/mod/applications/mod_fax/mod_fax.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mod/applications/mod_fax/mod_fax.c b/src/mod/applications/mod_fax/mod_fax.c index c242e848b1..cca0b519ea 100644 --- a/src/mod/applications/mod_fax/mod_fax.c +++ b/src/mod/applications/mod_fax/mod_fax.c @@ -1694,6 +1694,8 @@ static switch_status_t t38_gateway_on_reset(switch_core_session_t *session) { switch_channel_t *channel = switch_core_session_get_channel(session); + switch_channel_clear_flag(channel, CF_REDIRECT); + if (switch_channel_test_app_flag(channel, CF_APP_TAGGED)) { switch_channel_clear_app_flag(channel, CF_APP_TAGGED); switch_channel_set_state(channel, CS_CONSUME_MEDIA); @@ -1747,7 +1749,10 @@ static switch_bool_t t38_gateway_start(switch_core_session_t *session, const cha switch_channel_set_app_flag(peer ? channel : other_channel, CF_APP_TAGGED); switch_channel_clear_app_flag(peer ? other_channel : channel, CF_APP_TAGGED); + switch_channel_set_flag(channel, CF_REDIRECT); switch_channel_set_state(channel, CS_RESET); + + switch_channel_set_flag(other_channel, CF_REDIRECT); switch_channel_set_state(other_channel, CS_RESET); switch_core_session_rwunlock(other_session);