Ignore:
Timestamp:
Oct 14, 2009 1:13:18 PM (11 years ago)
Author:
bennylp
Message:

Ticket #881: send UPDATE or re-INVITE after ICE negotiation, if the default candidate has changed

  • done
  • added pj_ice_strans_state (to be used for informational purposes for now)
  • added pjmedia ICE transport specific info, and display it in call dump output
  • misc fixes (changed pjmedia_transport_info.spec_info_cnt from int to unsigned)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r2943 r2945  
    28302830    } 
    28312831 
    2832     /* Get SRTP status */ 
     2832    /* Get and ICE SRTP status */ 
    28332833    pjmedia_transport_info_init(&tp_info); 
    28342834    pjmedia_transport_get_info(call->med_tp, &tp_info); 
    28352835    if (tp_info.specific_info_cnt > 0) { 
    2836         int i; 
     2836        unsigned i; 
    28372837        for (i = 0; i < tp_info.specific_info_cnt; ++i) { 
    28382838            if (tp_info.spc_info[i].type == PJMEDIA_TRANSPORT_TYPE_SRTP)  
     
    28512851                    *p = '\0'; 
    28522852                } 
    2853                 break; 
     2853            } else if (tp_info.spc_info[i].type==PJMEDIA_TRANSPORT_TYPE_ICE) { 
     2854                const pjmedia_ice_transport_info *ii; 
     2855 
     2856                ii = (const pjmedia_ice_transport_info*)  
     2857                     tp_info.spc_info[i].buffer; 
     2858 
     2859                len = pj_ansi_snprintf(p, end-p,  
     2860                                       "%s  ICE role: %s, state: %s, comp_cnt: %u", 
     2861                                       indent, 
     2862                                       pj_ice_sess_role_name(ii->role), 
     2863                                       pj_ice_strans_state_name(ii->sess_state), 
     2864                                       ii->comp_cnt); 
     2865                if (len > 0 && len < end-p) { 
     2866                    p += len; 
     2867                    *p++ = '\n'; 
     2868                    *p = '\0'; 
     2869                } 
    28542870            } 
    28552871        } 
Note: See TracChangeset for help on using the changeset viewer.