Ignore:
Timestamp:
Nov 14, 2016 6:13:01 AM (4 years ago)
Author:
nanang
Message:

Re #1971: Request IPv4 relay address to an IPv6 TURN server for IPv6-IPv4 connectivity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r5474 r5481  
    19921992        comp->default_cand = (unsigned)(cand - comp->cand_list); 
    19931993 
     1994        /* Prefer IPv4 relay as default candidate for better connectivity 
     1995         * with IPv4 endpoints. 
     1996         */ 
     1997        if (cand->addr.addr.sa_family != pj_AF_INET()) { 
     1998            for (i=0; i<comp->cand_cnt; ++i) { 
     1999                if (comp->cand_list[i].type == PJ_ICE_CAND_TYPE_RELAYED && 
     2000                    comp->cand_list[i].addr.addr.sa_family == pj_AF_INET() && 
     2001                    comp->cand_list[i].status == PJ_SUCCESS) 
     2002                { 
     2003                    comp->default_cand = i; 
     2004                    break; 
     2005                } 
     2006            } 
     2007        } 
     2008 
    19942009        PJ_LOG(4,(comp->ice_st->obj_name, 
    19952010                  "Comp %d: TURN allocation complete, relay address is %s", 
Note: See TracChangeset for help on using the changeset viewer.