diff --git a/linphone/mediastreamer2/src/ice.c b/linphone/mediastreamer2/src/ice.c index 8238d5e47..fe915dc56 100644 --- a/linphone/mediastreamer2/src/ice.c +++ b/linphone/mediastreamer2/src/ice.c @@ -462,7 +462,6 @@ _ice_createErrorResponse(StunMessage *response, int cl, int number, const char* int ice_process_stun_message(RtpSession *session, struct IceCheckList *checklist, OrtpEvent *evt) { struct CandidatePair *remote_candidates = NULL; - int switch_to_address = -1; StunMessage msg; bool_t res; int highest_priority_success=-1; @@ -1185,21 +1184,6 @@ int ice_process_stun_message(RtpSession *session, struct IceCheckList *checklist } } -#if 0 - if (switch_to_address == -1) - return 0; - - /* skip symmetric RTP if any previous connection is working */ - if (switch_to_addressrtp.rem_addr, &evt_data->ep->addr, evt_data->ep->addrlen); - session->rtp.rem_addrlen=evt_data->ep->addrlen; - } -#endif return 0; }