]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5155
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 8 Mar 2013 14:24:44 +0000 (08:24 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 8 Mar 2013 14:24:50 +0000 (08:24 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 3be6ab249215ead2922cdbf9dd12c29ccac8b4d9..7b0a7673503bbc20ec364d1aaad7e67ea1318f93 100644 (file)
@@ -5177,7 +5177,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
                                        
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Passing %d %s to other leg\n", status, phrase);
 
-                                       if (status == 491 && sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU)) {
+                                       if (status == 491 && (sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU)||switch_channel_test_flag(channel, CF_PROXY_MODE))) {
                                                nua_respond(other_tech_pvt->nh, SIP_491_REQUEST_PENDING, TAG_END());
                                                switch_core_session_rwunlock(other_session);
                                                goto end;