diff --git a/linphone/mediastreamer2/src/ice.c b/linphone/mediastreamer2/src/ice.c index 5372dd613..645a16af1 100644 --- a/linphone/mediastreamer2/src/ice.c +++ b/linphone/mediastreamer2/src/ice.c @@ -45,10 +45,10 @@ ice_sendtest( struct IceCheckList *checklist, struct CandidatePair *remote_candi stunBuildReqSimple( &req, username, FALSE, FALSE, 1); req.hasMessageIntegrity=TRUE; - /* 7.1.1.1 - The attribute MUST be set equal to the priority that would be - assigned, based on the algorithm in Section 4.1.2, to a peer - reflexive candidate, should one be learned as a consequence of this + /* 7.1.1.1 + The attribute MUST be set equal to the priority that would be + assigned, based on the algorithm in Section 4.1.2, to a peer + reflexive candidate, should one be learned as a consequence of this check */ req.hasPriority = TRUE; req.priority.priority = (UInt32)(pow((double)2,(double)24)*(110) + pow((double)2,(double)8)*(65535) + pow((double)2,(double)0)*(256 - remote_candidate->remote_candidate.component_id)); @@ -653,7 +653,7 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch } if (checklist->rem_controlling==0 && msg.hasIceControlling) { - /* If the agent's tie-breaker is larger than or equal + /* If the agent's tie-breaker is larger than or equal to the contents of the ICE-CONTROLLING attribute -> send 487, and do not change ROLE */ if (checklist->tiebreak_value >= msg.iceControlling.value) { @@ -693,7 +693,7 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch } if (checklist->rem_controlling==1 && msg.hasIceControlled) { - + /* If the agent's tie-breaker is larger than or equal to the contents of the ICE-CONTROLLED attribute -> change ROLE */