Ignore:
Timestamp:
Jun 13, 2016 7:11:41 AM (5 years ago)
Author:
nanang
Message:

Re #422: Enable IPv6 in ICE transport in pjsua-lib:

  • currently only IPv6 host candidate will be generated, still not sure whether IPv6 NAT is really used in real world
  • if the account enables IPv6 media and the host has IPv4 address, ICE will generate IPv4+IPv6 candidates, it should be very useful in NAT64 environment, and should not add delay in ICE nego in IPv6 only environment (note: candidate check pair must have same IP address family).
File:
1 edited

Legend:

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

    r5340 r5342  
    675675    for (i=0; i<ice_st->cfg.stun_tp_cnt; ++i) { 
    676676        status = add_stun_and_host(ice_st, comp, i); 
    677         if (status != PJ_SUCCESS) 
    678             return status; 
     677        if (status != PJ_SUCCESS) { 
     678            PJ_PERROR(3,(ice_st->obj_name, status, 
     679                         "Failed creating STUN transport #%d for comp %d", 
     680                         i, comp->comp_id)); 
     681            //return status; 
     682        } 
    679683    } 
    680684 
     
    682686    for (i=0; i<ice_st->cfg.turn_tp_cnt; ++i) { 
    683687        status = add_update_turn(ice_st, comp, i); 
    684         if (status != PJ_SUCCESS) 
    685             return status; 
     688        if (status != PJ_SUCCESS) { 
     689            PJ_PERROR(3,(ice_st->obj_name, status, 
     690                         "Failed creating TURN transport #%d for comp %d", 
     691                         i, comp->comp_id)); 
     692            //return status; 
     693        } 
    686694    } 
    687695 
Note: See TracChangeset for help on using the changeset viewer.