]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10899: [core] 3pcc-mode=proxy is proxying SDP in the 200OK with late offer invites...
authorBrian West <brian@freeswitch.org>
Sat, 13 Jan 2018 21:56:10 +0000 (15:56 -0600)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:39 +0000 (07:21 +0000)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 72acad91d13b332cd509202eb979743a42655e21..2f437572bf4deeb37b04c26935fa43aebb273357 100644 (file)
@@ -766,7 +766,7 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
                                switch_channel_set_flag(channel, CF_3PCC);
                        }
 
-                       if (b_sdp && !switch_channel_var_true(channel, "3pcc_always_gen_sdp")) {
+                       if (b_sdp && is_proxy && !switch_channel_var_true(channel, "3pcc_always_gen_sdp")) {
                                switch_core_media_set_local_sdp(session, b_sdp, SWITCH_TRUE);
                        } else {
                                switch_core_media_choose_port(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO, 0);