]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10258: [mod_sofia] FW must keep previously negotiated DTLS role during SIP re...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 27 Apr 2017 23:02:13 +0000 (18:02 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 27 Apr 2017 23:02:13 +0000 (18:02 -0500)
src/switch_core_media.c

index 86490e9c66ba459d9f8fa02a26ea1540175b7020..77a0ba590e4824057b122c6fa848ced026121bf1 100644 (file)
@@ -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)) {