Ignore:
Timestamp:
May 18, 2009 11:49:46 PM (15 years ago)
Author:
bennylp
Message:

Ticket #856: Put back the ICE candidate priority values according to the default values in the draft-mmusic-ice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/sipit24/pjnath/src/pjnath/ice_session.c

    r2708 r2714  
    3030#include <pj/string.h> 
    3131 
    32  
    3332/* String names for candidate types */ 
    3433static const char *cand_type_names[] = 
     
    243242                                    const pj_sockaddr *base_addr) 
    244243{ 
    245 #if 0 
     244#if PJNATH_ICE_PRIO_STD 
    246245    char buf[64]; 
    247246    pj_uint32_t val; 
     
    659658                                  pj_uint32_t comp_id) 
    660659{ 
    661 #if 0 
     660#if PJNATH_ICE_PRIO_STD 
    662661    return ((ice->prefs[type] & 0xFF) << 24) +  
    663662           ((local_pref & 0xFFFF)    << 8) + 
     
    16381637 
    16391638    /* Add PRIORITY */ 
     1639#if PJNATH_ICE_PRIO_STD 
     1640    prio = CALC_CAND_PRIO(ice, PJ_ICE_CAND_TYPE_PRFLX, 65535,  
     1641                          lcand->comp_id); 
     1642#else 
    16401643    prio = CALC_CAND_PRIO(ice, PJ_ICE_CAND_TYPE_PRFLX, 0,  
    16411644                          lcand->comp_id); 
     1645#endif 
    16421646    pj_stun_msg_add_uint_attr(check->tdata->pool, check->tdata->msg,  
    16431647                              PJ_STUN_ATTR_PRIORITY, prio); 
Note: See TracChangeset for help on using the changeset viewer.