Ignore:
Timestamp:
Sep 7, 2010 5:10:25 AM (10 years ago)
Author:
ming
Message:

Fixed #1118: Add last error code to PJSUA-LIB account info structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r3222 r3303  
    18001800        info->online_status_text = pj_str("Offline"); 
    18011801 
    1802     if (acc->reg_last_err) { 
    1803         info->status = (pjsip_status_code) acc->reg_last_err; 
    1804         pj_strerror(acc->reg_last_err, info->buf_, sizeof(info->buf_)); 
    1805         info->status_text = pj_str(info->buf_); 
    1806     } else if (acc->reg_last_code) { 
     1802    if (acc->reg_last_code) { 
    18071803        if (info->has_registration) { 
    18081804            info->status = (pjsip_status_code) acc->reg_last_code; 
    18091805            info->status_text = *pjsip_get_status_text(acc->reg_last_code); 
     1806            if (acc->reg_last_err) 
     1807                info->reg_last_err = acc->reg_last_err; 
    18101808        } else { 
    18111809            info->status = (pjsip_status_code) 0; 
Note: See TracChangeset for help on using the changeset viewer.