Changeset 3996


Ignore:
Timestamp:
Mar 30, 2012 6:18:50 AM (7 years ago)
Author:
ming
Message:

Re #1446 (misc fix): Fix call info to display correct invite state

File:
1 edited

Legend:

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

    r3990 r3996  
    15421542 
    15431543    /* state, state_text */ 
    1544     info->state = (call->inv? call->inv->state: PJSIP_INV_STATE_DISCONNECTED); 
     1544    if (call->inv) { 
     1545        info->state = call->inv->state; 
     1546    } else if (call->async_call.dlg) { 
     1547        info->state = PJSIP_INV_STATE_NULL; 
     1548    } else { 
     1549        info->state = PJSIP_INV_STATE_DISCONNECTED; 
     1550    } 
    15451551    info->state_text = pj_str((char*)pjsip_inv_state_name(info->state)); 
    15461552 
Note: See TracChangeset for help on using the changeset viewer.