Commit 96b1238d authored by aymeric's avatar aymeric

remove commented code.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@308 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 46c10e2e
...@@ -462,7 +462,6 @@ _ice_createErrorResponse(StunMessage *response, int cl, int number, const char* ...@@ -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) int ice_process_stun_message(RtpSession *session, struct IceCheckList *checklist, OrtpEvent *evt)
{ {
struct CandidatePair *remote_candidates = NULL; struct CandidatePair *remote_candidates = NULL;
int switch_to_address = -1;
StunMessage msg; StunMessage msg;
bool_t res; bool_t res;
int highest_priority_success=-1; int highest_priority_success=-1;
...@@ -1185,21 +1184,6 @@ int ice_process_stun_message(RtpSession *session, struct IceCheckList *checklist ...@@ -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_address<highest_priority_success || highest_priority_success==-1)
{
/* rtp_in_direct_mode = 1; */
/* current destination address: snprintf(rtp_remote_addr, 256, "%s:%i", src6host, recvport); */
ms_warning("ice.c: Modifying remote destination for RTP stream (%s:%i)\n",
src6host, recvport);
memcpy(&session->rtp.rem_addr, &evt_data->ep->addr, evt_data->ep->addrlen);
session->rtp.rem_addrlen=evt_data->ep->addrlen;
}
#endif
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment