Changeset 2945 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Oct 14, 2009 1:13:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r2943 r2945 2830 2830 } 2831 2831 2832 /* Get SRTP status */2832 /* Get and ICE SRTP status */ 2833 2833 pjmedia_transport_info_init(&tp_info); 2834 2834 pjmedia_transport_get_info(call->med_tp, &tp_info); 2835 2835 if (tp_info.specific_info_cnt > 0) { 2836 inti;2836 unsigned i; 2837 2837 for (i = 0; i < tp_info.specific_info_cnt; ++i) { 2838 2838 if (tp_info.spc_info[i].type == PJMEDIA_TRANSPORT_TYPE_SRTP) … … 2851 2851 *p = '\0'; 2852 2852 } 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 } 2854 2870 } 2855 2871 }
Note: See TracChangeset
for help on using the changeset viewer.