From 62807092a940264caac5aabb74fe85c3faf76619 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 27 Apr 2017 18:02:13 -0500 Subject: [PATCH] FS-10258: [mod_sofia] FW must keep previously negotiated DTLS role during SIP re-INVITE -- this part backwards --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 86490e9c66..77a0ba590e 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -3641,7 +3641,7 @@ static switch_call_direction_t switch_ice_direction(switch_rtp_engine_t *engine, } if (switch_rtp_has_dtls() && dtls_ok(smh->session)) { - r = engine->dtls_controller ? SWITCH_CALL_DIRECTION_OUTBOUND : SWITCH_CALL_DIRECTION_INBOUND; + r = engine->dtls_controller ? SWITCH_CALL_DIRECTION_INBOUND : SWITCH_CALL_DIRECTION_OUTBOUND; } else { if ((switch_channel_test_flag(session->channel, CF_REINVITE) || switch_channel_test_flag(session->channel, CF_RECOVERING)) && switch_channel_test_flag(session->channel, CF_AVPF)) {