Commit 3e25df77 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête

conncheck: make oc2007r2 mode more rfc5245 friendly

parent 43f3d70e
...@@ -2163,7 +2163,7 @@ int conn_check_add_for_candidate (NiceAgent *agent, guint stream_id, NiceCompone ...@@ -2163,7 +2163,7 @@ int conn_check_add_for_candidate (NiceAgent *agent, guint stream_id, NiceCompone
/* note: according to 7.2.1.3, "Learning Peer Reflexive Candidates", /* note: according to 7.2.1.3, "Learning Peer Reflexive Candidates",
* the agent does not pair this candidate with any local candidates. * the agent does not pair this candidate with any local candidates.
*/ */
if (agent->compatibility == NICE_COMPATIBILITY_RFC5245 && if (NICE_AGENT_IS_COMPATIBLE_WITH_RFC5245_OR_OC2007R2 (agent) &&
remote->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) remote->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE)
{ {
return added; return added;
...@@ -2209,7 +2209,7 @@ int conn_check_add_for_local_candidate (NiceAgent *agent, guint stream_id, NiceC ...@@ -2209,7 +2209,7 @@ int conn_check_add_for_local_candidate (NiceAgent *agent, guint stream_id, NiceC
* with other remote candidates * with other remote candidates
*/ */
if (agent->compatibility == NICE_COMPATIBILITY_RFC5245 && if (NICE_AGENT_IS_COMPATIBLE_WITH_RFC5245_OR_OC2007R2 (agent) &&
local->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE) local->type == NICE_CANDIDATE_TYPE_PEER_REFLEXIVE)
{ {
return added; return added;
......
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