Ignore:
Timestamp:
Nov 26, 2012 2:04:17 AM (12 years ago)
Author:
ming
Message:

Fixes #1595: Allow call hangup immediately after outgoing call

File:
1 edited

Legend:

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

    r4254 r4300  
    889889    int len; 
    890890    pjsip_inv_session *inv = pjsua_var.calls[call_id].inv; 
    891     pjsip_dialog *dlg = inv->dlg; 
     891    pjsip_dialog *dlg; 
    892892    char userinfo[128]; 
    893893 
    894894    /* Dump invite sesion info. */ 
    895895 
     896    dlg = (inv? inv->dlg: pjsua_var.calls[call_id].async_call.dlg); 
    896897    len = pjsip_hdr_print_on(dlg->remote.info, userinfo, sizeof(userinfo)); 
    897898    if (len < 0) 
     
    902903    len = pj_ansi_snprintf(buf, size, "%s[%s] %s", 
    903904                           title, 
    904                            pjsip_inv_state_name(inv->state), 
     905                           pjsip_inv_state_name(inv? inv->state: 
     906                                                PJSIP_INV_STATE_DISCONNECTED), 
    905907                           userinfo); 
    906908    if (len < 1 || len >= (int)size) { 
Note: See TracChangeset for help on using the changeset viewer.