Changeset 286 for pjproject/trunk


Ignore:
Timestamp:
Mar 5, 2006 11:54:56 AM (19 years ago)
Author:
bennylp
Message:

Show call disconnect reason

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/main.c

    r277 r286  
    9090    PJ_UNUSED_ARG(e); 
    9191 
    92     PJ_LOG(3,(THIS_FILE, "Call %d state changed to %s",  
    93               call_index, 
    94               pjsua_inv_state_names[call->inv->state])); 
    95  
    9692    if (call->inv->state == PJSIP_INV_STATE_DISCONNECTED) { 
     93 
     94        PJ_LOG(3,(THIS_FILE, "Call %d is DISCONNECTED [reason=%d (%s)]",  
     95                  call_index, 
     96                  call->inv->cause, 
     97                  pjsip_get_status_text(call->inv->cause)->ptr)); 
     98 
    9799        call->inv = NULL; 
    98100        if ((int)call->index == current_call) { 
     
    101103 
    102104    } else { 
     105 
     106        PJ_LOG(3,(THIS_FILE, "Call %d state changed to %s",  
     107                  call_index, 
     108                  pjsua_inv_state_names[call->inv->state])); 
    103109 
    104110        if (call && current_call==-1) 
     
    589595 
    590596                /* Hangup current calls */ 
    591                 pjsua_call_hangup(current_call, PJSIP_SC_DECLINE); 
     597                pjsua_call_hangup(current_call); 
    592598            } 
    593599            break; 
Note: See TracChangeset for help on using the changeset viewer.