Changeset 5833 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Jul 23, 2018 7:15:08 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r5830 r5833 388 388 static pj_bool_t logging_on_rx_msg(pjsip_rx_data *rdata) 389 389 { 390 PJ_LOG(4,(THIS_FILE, "RX %d bytes %s from %s %s:%d:\n" 390 char addr[PJ_INET6_ADDRSTRLEN+10]; 391 pj_str_t input_str = pj_str(rdata->pkt_info.src_name); 392 393 PJ_LOG(4,(THIS_FILE, "RX %d bytes %s from %s %s:\n" 391 394 "%.*s\n" 392 395 "--end msg--", 393 396 rdata->msg_info.len, 394 397 pjsip_rx_data_get_info(rdata), 395 rdata->tp_info.transport->type_name, 396 rdata->pkt_info.src_name, 397 rdata->pkt_info.src_port, 398 rdata->tp_info.transport->type_name, 399 pj_addr_str_print(&input_str, 400 rdata->pkt_info.src_port, 401 addr, 402 sizeof(addr), 403 1), 398 404 (int)rdata->msg_info.len, 399 405 rdata->msg_info.msg_buf)); … … 406 412 static pj_status_t logging_on_tx_msg(pjsip_tx_data *tdata) 407 413 { 414 char addr[PJ_INET6_ADDRSTRLEN+10]; 415 pj_str_t input_str = pj_str(tdata->tp_info.dst_name); 408 416 409 417 /* Important note: … … 412 420 * has lower priority than transport layer. 413 421 */ 414 415 PJ_LOG(4,(THIS_FILE, "TX %d bytes %s to %s %s:%d:\n" 422 PJ_LOG(4,(THIS_FILE, "TX %d bytes %s to %s %s:\n" 416 423 "%.*s\n" 417 424 "--end msg--", … … 419 426 pjsip_tx_data_get_info(tdata), 420 427 tdata->tp_info.transport->type_name, 421 tdata->tp_info.dst_name, 422 tdata->tp_info.dst_port, 428 pj_addr_str_print(&input_str, 429 tdata->tp_info.dst_port, 430 addr, 431 sizeof(addr), 432 1), 423 433 (int)(tdata->buf.cur - tdata->buf.start), 424 434 tdata->buf.start)); 435 425 436 426 437 /* Always return success, otherwise message will not get sent! */
Note: See TracChangeset
for help on using the changeset viewer.