]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3664 please produce same trace with this patch or later
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 21 Nov 2011 14:25:27 +0000 (08:25 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 21 Nov 2011 14:27:25 +0000 (08:27 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 52096dd02bed7cca64fd068f0552e210a0f9d821..15eb3a197650834297ead8c6610ff49eaf35d3d6 100644 (file)
@@ -4460,14 +4460,11 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
                                        }
                                }
 
-
-                               if (pass == 2 && sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU)) {
-                                       pass = 0;
-                               }
-
-
-                               if (switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) || 
-                                       switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MEDIA) || !switch_rtp_ready(tech_pvt->rtp_session)) {
+                               if ((pass == 2 && sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU)) || 
+                                       !sofia_test_flag(tech_pvt, TFLAG_REINVITE) ||
+                                       switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) || 
+                                       switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MEDIA) || 
+                                       !switch_rtp_ready(tech_pvt->rtp_session)) {
                                        pass = 0;
                                }