Changeset 662 for pjproject/trunk


Ignore:
Timestamp:
Aug 8, 2006 12:41:00 AM (18 years ago)
Author:
bennylp
Message:

Added logging in sip_regc.c to report the error when pjsip_regc_send() fails (because no error will be logged when re-registration fails).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r476 r662  
    599599    /* Make sure we don't have pending transaction. */ 
    600600    if (regc->pending_tsx) { 
     601        PJ_LOG(4,(THIS_FILE, "Unable to send request, regc has another " 
     602                             "transaction pending")); 
    601603        pjsip_tx_data_dec_ref( tdata ); 
    602604        return PJSIP_EBUSY; 
     
    616618    ++regc->pending_tsx; 
    617619    status = pjsip_endpt_send_request(regc->endpt, tdata, -1, regc, &tsx_callback); 
    618     if (status!=PJ_SUCCESS) 
     620    if (status!=PJ_SUCCESS) { 
    619621        --regc->pending_tsx; 
     622        PJ_LOG(4,(THIS_FILE, "Error sending request, status=%d", status)); 
     623    } 
    620624 
    621625    return status; 
Note: See TracChangeset for help on using the changeset viewer.