]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pass failure across in T.38 passthru mode
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Mar 2011 16:35:19 +0000 (11:35 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Mar 2011 16:35:19 +0000 (11:35 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 5a3ad76680f67fba0b374bae351fce24df99a964..9161f23eb5324e5e9f5c3a282f2cb689073cb4c2 100644 (file)
@@ -4414,7 +4414,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
                
                if (switch_channel_test_flag(channel, CF_PROXY_MODE) || 
                        switch_channel_test_flag(channel, CF_PROXY_MEDIA) || 
-                       (sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU) && has_t38)) {
+                       (sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU) && (has_t38 || status > 299))) {
 
                        if (sofia_test_flag(tech_pvt, TFLAG_SENT_UPDATE)) {
                                sofia_clear_flag_locked(tech_pvt, TFLAG_SENT_UPDATE);