Changeset 549 for pjproject


Ignore:
Timestamp:
Jun 23, 2006 3:04:11 PM (18 years ago)
Author:
bennylp
Message:

Fixed 1st response time not initialized for UAS call in pjsua

File:
1 edited

Legend:

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

    r508 r549  
    473473 
    474474    /* Must answer with some response to initial INVITE. 
    475      * If auto-answer flag is set, send 200 straight away, otherwise send 100. 
    476475     */ 
    477476    status = pjsip_inv_initial_answer(inv, rdata,  
     
    713712        return PJSIP_ESESSIONTERMINATED; 
    714713    } 
     714 
     715    if (call->res_time.sec == 0) 
     716        pj_gettimeofday(&call->res_time); 
    715717 
    716718    /* Create response message */ 
     
    15881590        case PJSIP_INV_STATE_DISCONNECTED: 
    15891591            pj_gettimeofday(&call->dis_time); 
     1592            if (call->res_time.sec == 0) 
     1593                pj_gettimeofday(&call->res_time); 
    15901594            if (e->body.tsx_state.tsx->status_code > call->last_code) { 
    15911595                call->last_code = e->body.tsx_state.tsx->status_code; 
Note: See TracChangeset for help on using the changeset viewer.