Changeset 5984
- Timestamp:
- May 9, 2019 8:18:18 AM (5 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r5373 r5984 804 804 // cause accessing freed memory location. 805 805 //--pubc->pending_tsx; 806 PJ_ LOG(4,(THIS_FILE, "Error sending request, status=%d", status));806 PJ_PERROR(4,(THIS_FILE, status, "Error sending request")); 807 807 } 808 808 -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r5937 r5984 1948 1948 status = pjmedia_sdp_neg_negotiate(inv->pool_prov, inv->neg, 0); 1949 1949 1950 PJ_ LOG(5,(inv->obj_name, "SDP negotiation done, status=%d", status));1950 PJ_PERROR(4,(inv->obj_name, status, "SDP negotiation done")); 1951 1951 1952 1952 if (mod_inv.cb.on_media_update && inv->notify) -
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r5373 r5984 1440 1440 regc->has_tsx = PJ_FALSE; 1441 1441 1442 PJ_ LOG(4,(THIS_FILE, "Error sending request, status=%d", status));1442 PJ_PERROR(4,(THIS_FILE, status, "Error sending request")); 1443 1443 } 1444 1444 -
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r5971 r5984 524 524 status = pjsip_resolver_create(endpt->pool, &endpt->resolver); 525 525 if (status != PJ_SUCCESS) { 526 PJ_LOG(4, (THIS_FILE, "Error creating resolver instance")); 526 PJ_PERROR(4, (THIS_FILE, status, 527 "Error creating resolver instance")); 527 528 goto on_error; 528 529 } … … 568 569 pj_pool_release( endpt->pool ); 569 570 570 PJ_ LOG(4, (THIS_FILE, "Error creating endpoint"));571 PJ_PERROR(4, (THIS_FILE, status, "Error creating endpoint")); 571 572 return status; 572 573 } … … 580 581 exit_cb *ecb; 581 582 582 PJ_LOG(5, (THIS_FILE, "Destroying endpoin ginstance.."));583 PJ_LOG(5, (THIS_FILE, "Destroying endpoint instance..")); 583 584 584 585 /* Phase 1: stop all modules */ -
pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
r5723 r5984 513 513 on_error: 514 514 if (status != PJ_SUCCESS) { 515 char errmsg[PJ_ERR_MSG_SIZE]; 516 PJ_LOG(4,(THIS_FILE, "Failed to resolve '%.*s'. Err=%d (%s)", 517 (int)target->addr.host.slen, 518 target->addr.host.ptr, 519 status, 520 pj_strerror(status,errmsg,sizeof(errmsg)).ptr)); 515 PJ_PERROR(4,(THIS_FILE, status, 516 "Failed to resolve '%.*s'", 517 (int)target->addr.host.slen, 518 target->addr.host.ptr)); 521 519 (*cb)(status, token, NULL); 522 520 return; … … 568 566 569 567 if (status != PJ_SUCCESS) { 570 char errmsg[PJ_ERR_MSG_SIZE]; 571 572 /* Log error */ 573 pj_strerror(status, errmsg, sizeof(errmsg)); 574 PJ_LOG(4,(query->objname, "DNS A record resolution failed: %s", 575 errmsg)); 568 PJ_PERROR(4,(query->objname, status, 569 "DNS A record resolution failed")); 576 570 577 571 query->last_error = status; … … 631 625 632 626 if (status != PJ_SUCCESS) { 633 char errmsg[PJ_ERR_MSG_SIZE]; 634 635 /* Log error */ 636 pj_strerror(status, errmsg, sizeof(errmsg)); 637 PJ_LOG(4,(query->objname, "DNS AAAA record resolution failed: %s", 638 errmsg)); 627 PJ_PERROR(4,(query->objname, status, 628 "DNS AAAA record resolution failed")); 639 629 640 630 query->last_error = status; … … 661 651 662 652 if (status != PJ_SUCCESS) { 663 char errmsg[PJ_ERR_MSG_SIZE]; 664 665 /* Log error */ 666 pj_strerror(status, errmsg, sizeof(errmsg)); 667 PJ_LOG(4,(query->objname, "DNS A/AAAA record resolution failed: %s", 668 errmsg)); 653 PJ_PERROR(4,(query->objname, status, 654 "DNS A/AAAA record resolution failed")); 669 655 670 656 /* Call the callback */ -
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r5909 r5984 776 776 */ 777 777 if (pj_hash_count(mod_tsx_layer.htable) != 0) { 778 if (pjsip_endpt_atexit(mod_tsx_layer.endpt, &tsx_layer_destroy) !=779 PJ_SUCCESS)780 {781 PJ_ LOG(3,(THIS_FILE, "Failed to register transaction layer "782 "module destroy."));778 pj_status_t status; 779 status = pjsip_endpt_atexit(mod_tsx_layer.endpt, &tsx_layer_destroy); 780 if (status != PJ_SUCCESS) { 781 PJ_PERROR(3,(THIS_FILE, status, 782 "Failed to register transaction layer module destroy.")); 783 783 } 784 784 return PJ_EBUSY; … … 2038 2038 if (sent < 0) { 2039 2039 pj_time_val delay = {0, 0}; 2040 char errmsg[PJ_ERR_MSG_SIZE]; 2041 2042 pj_strerror((pj_status_t)-sent, errmsg, sizeof(errmsg)); 2043 2044 PJ_LOG(2,(tsx->obj_name, "Transport failed to send %s! Err=%d (%s)", 2045 pjsip_tx_data_get_info(tdata), -sent, errmsg)); 2040 2041 PJ_PERROR(2,(tsx->obj_name, (pj_status_t)-sent, 2042 "Transport failed to send %s!", 2043 pjsip_tx_data_get_info(tdata))); 2046 2044 2047 2045 /* Post the event for later processing, to avoid deadlock. -
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r5971 r5984 1507 1507 * just fallback using pj_gethostip(), see ticket #1660. 1508 1508 */ 1509 PJ_LOG(5,(THIS_FILE,"Warning: unable to determine local " 1510 "interface, fallback to default interface!")); 1509 PJ_PERROR(5,(THIS_FILE, status, 1510 "Warning: unable to determine local interface, " 1511 "fallback to default interface!")); 1511 1512 status = pj_gethostip(af, &itf_addr); 1512 1513 if (status != PJ_SUCCESS) -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r5971 r5984 167 167 pj_status_t status) 168 168 { 169 char errmsg[PJ_ERR_MSG_SIZE]; 170 171 pj_strerror(status, errmsg, sizeof(errmsg)); 172 173 PJ_LOG(3,(sender, "%s: %s [code=%d]", title, errmsg, status)); 169 PJ_PERROR(3,(sender, status, "%s: [code=%d]", title, status)); 174 170 } 175 171 … … 966 962 readbuf, 0); 967 963 if (status != PJ_SUCCESS && status != PJ_EPENDING) { 968 PJ_LOG(4, (tcp->base.obj_name, 969 "pj_activesock_start_read() error, status=%d", 970 status)); 964 PJ_PERROR(4, (tcp->base.obj_name, status, 965 "pj_activesock_start_read() error")); 971 966 return status; 972 967 } … … 1687 1682 &enabled, sizeof(enabled)); 1688 1683 if (status != PJ_SUCCESS) { 1689 PJ_LOG(1, ("TRACE", "fail set reuseaddr"));1690 1684 PJ_PERROR(4, (listener->factory.obj_name, status, 1691 "Warning: error applying SO_REUSEADDR"));1685 "Warning: error applying SO_REUSEADDR")); 1692 1686 } 1693 1687 } -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r5971 r5984 173 173 pj_status_t status) 174 174 { 175 char errmsg[PJ_ERR_MSG_SIZE]; 176 177 pj_strerror(status, errmsg, sizeof(errmsg)); 178 179 PJ_LOG(3,(sender, "%s: %s [code=%d]", title, errmsg, status)); 175 PJ_PERROR(3,(sender, status, "%s: [code=%d]", title, status)); 180 176 } 181 177 … … 1106 1102 readbuf, 0); 1107 1103 if (status != PJ_SUCCESS && status != PJ_EPENDING) { 1108 PJ_LOG(4, (tls->base.obj_name, 1109 "pj_ssl_sock_start_read() error, status=%d", 1110 status)); 1104 PJ_PERROR(4, (tls->base.obj_name, status, 1105 "pj_ssl_sock_start_read() error")); 1111 1106 return status; 1112 1107 } -
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r5971 r5984 645 645 &sobuf_size, sizeof(sobuf_size)); 646 646 if (status != PJ_SUCCESS) { 647 char errmsg[PJ_ERR_MSG_SIZE]; 648 pj_strerror(status, errmsg, sizeof(errmsg)); 649 PJ_LOG(4,(THIS_FILE, "Error setting SO_RCVBUF: %s [%d]", errmsg, 650 status)); 647 PJ_PERROR(4,(THIS_FILE, status, "Error setting SO_RCVBUF")); 651 648 } 652 649 #endif … … 658 655 &sobuf_size, sizeof(sobuf_size)); 659 656 if (status != PJ_SUCCESS) { 660 char errmsg[PJ_ERR_MSG_SIZE]; 661 pj_strerror(status, errmsg, sizeof(errmsg)); 662 PJ_LOG(4,(THIS_FILE, "Error setting SO_SNDBUF: %s [%d]", errmsg, 663 status)); 657 PJ_PERROR(4,(THIS_FILE, status, "Error setting SO_SNDBUF")); 664 658 } 665 659 #endif
Note: See TracChangeset
for help on using the changeset viewer.