]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add a bit to 2db8f94ab6543018df1792663b809e77d521cab9
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Jun 2015 02:09:45 +0000 (21:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Jun 2015 02:10:16 +0000 (21:10 -0500)
src/switch_core_media.c

index 4128b50f69ddd8d8862f56c0e44a9ef01cf748c0..2a43e6334a0b0a202d1655e4cac338621da14d23 100644 (file)
@@ -2976,6 +2976,8 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
 
        if (engine->ice_in.cands[engine->ice_in.chosen[1]][1].con_port) {
                if (engine->rtcp_mux) {
+                       engine->ice_in.cands[engine->ice_in.chosen[1]][1].con_port = engine->ice_in.cands[engine->ice_in.chosen[0]][0].con_port;
+                       engine->ice_in.cands[engine->ice_in.chosen[1]][1].con_addr = engine->ice_in.cands[engine->ice_in.chosen[0]][0].con_addr;
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_NOTICE,
                                                          "Asked by candidate to set remote rtcp %s addr to %s:%d but this is rtcp-mux so no thanks\n", type2str(type),
                                                          engine->ice_in.cands[engine->ice_in.chosen[1]][1].con_addr, engine->ice_in.cands[engine->ice_in.chosen[1]][1].con_port);