Changeset 3870 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_dump.c
- Timestamp:
- Oct 28, 2011 4:10:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_dump.c
r3857 r3870 392 392 } else if (tp_info.spc_info[j].type==PJMEDIA_TRANSPORT_TYPE_ICE) { 393 393 const pjmedia_ice_transport_info *ii; 394 unsigned jj; 394 395 395 396 ii = (const pjmedia_ice_transport_info*) … … 406 407 *p++ = '\n'; 407 408 *p = '\0'; 409 } 410 411 for (jj=0; ii->sess_state==PJ_ICE_STRANS_STATE_RUNNING && jj<2; ++jj) { 412 const char *type1 = pj_ice_get_cand_type_name(ii->comp[jj].lcand_type); 413 const char *type2 = pj_ice_get_cand_type_name(ii->comp[jj].rcand_type); 414 char addr1[PJ_INET6_ADDRSTRLEN+10]; 415 char addr2[PJ_INET6_ADDRSTRLEN+10]; 416 const char *comp_name[2] = {"rtp ", "rtcp"}; 417 418 if (pj_sockaddr_has_addr(&ii->comp[jj].lcand_addr)) 419 pj_sockaddr_print(&ii->comp[jj].lcand_addr, addr1, sizeof(addr1), 3); 420 else 421 strcpy(addr1, "0.0.0.0:0"); 422 if (pj_sockaddr_has_addr(&ii->comp[jj].rcand_addr)) 423 pj_sockaddr_print(&ii->comp[jj].rcand_addr, addr2, sizeof(addr2), 3); 424 else 425 strcpy(addr2, "0.0.0.0:0"); 426 len = pj_ansi_snprintf(p, end-p, 427 " %s [%d]: L:%s (%c) --> R:%s (%c)\n", 428 indent, jj, 429 addr1, type1[0], 430 addr2, type2[0]); 431 if (len > 0 && len < end-p) { 432 p += len; 433 *p = '\0'; 434 } 408 435 } 409 436 }
Note: See TracChangeset
for help on using the changeset viewer.