]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set CF_REDIRECT to avoid hangup_after_bridge
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 25 May 2010 00:33:01 +0000 (19:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 25 May 2010 00:33:01 +0000 (19:33 -0500)
src/mod/applications/mod_fax/mod_fax.c

index c242e848b18e8a869c4d8251bacdd069027f3879..cca0b519ea6a3a59ff99eaff8b96557a70d0249d 100644 (file)
@@ -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);