Ignore:
Timestamp:
Jan 28, 2020 3:51:50 AM (4 years ago)
Author:
riza
Message:

Close #2263: Add callback to notify when first valid pair is found on ICE negotiation.

File:
1 edited

Legend:

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

    r5850 r6139  
    419419    pj_list_init(&ice->early_check); 
    420420 
     421    ice->valid_pair_found = PJ_FALSE; 
     422 
    421423    /* Done */ 
    422424    *p_ice = ice; 
     
    13491351             (check->nominated ? "  and nominated" : ""))); 
    13501352 
     1353        /* On the first valid pair, we call the callback, if present */ 
     1354        if (ice->valid_pair_found == PJ_FALSE) { 
     1355            ice->valid_pair_found = PJ_TRUE; 
     1356 
     1357            if (ice->cb.on_valid_pair) { 
     1358                (*ice->cb.on_valid_pair)(ice); 
     1359            } 
     1360        } 
    13511361    } 
    13521362 
Note: See TracChangeset for help on using the changeset viewer.