]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-1681
authorBrian West <brian@freeswitch.org>
Mon, 27 Sep 2010 17:44:36 +0000 (12:44 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 27 Sep 2010 17:44:50 +0000 (12:44 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/sofia.c

index d2bf096249a4907d90fee763044416785f60da8f..e4c4a51865b3562c78e17bc7e4590d7cbffa8c82 100644 (file)
@@ -2016,6 +2016,9 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                                                        switch_t38_options_t *t38_options = switch_channel_get_private(tech_pvt->channel, "t38_options");
                                                        if (t38_options) {
                                                                sofia_glue_set_image_sdp(tech_pvt, t38_options, 0);
+                                                               if (switch_rtp_ready(tech_pvt->rtp_session)) {
+                                                                       switch_rtp_udptl_mode(tech_pvt->rtp_session);
+                                                               }
                                                        }
                                                } else {
                                                        sofia_glue_tech_set_local_sdp(tech_pvt, sdp, SWITCH_TRUE);
index 80f72d44da6acae43c6b762ecd465a72cc606a33..470a8658ce0236580f3601fd261c374355a0d6f9 100644 (file)
@@ -4197,14 +4197,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
                                        if (status == 200 && sofia_test_flag(tech_pvt, TFLAG_T38_PASSTHRU) && has_t38) {
                                                if (switch_rtp_ready(tech_pvt->rtp_session) && switch_rtp_ready(other_tech_pvt->rtp_session)) {
                                                        switch_rtp_udptl_mode(tech_pvt->rtp_session);
-                                                       switch_rtp_udptl_mode(other_tech_pvt->rtp_session);
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Activating T38 Passthru\n");
                                                }
-                                               switch_core_session_receive_message(other_session, msg);
-                                       } else {
-                                               switch_core_session_queue_message(other_session, msg);
                                        }
 
+                                       switch_core_session_queue_message(other_session, msg);
 
                                        switch_core_session_rwunlock(other_session);
                                }