Ignore:
Timestamp:
Feb 27, 2013 9:45:52 AM (12 years ago)
Author:
nanang
Message:

Re #1530: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c

    r4067 r4377  
    363363{ 
    364364    pjsip_rx_data *rdata; 
     365    pjsip_event ack_e; 
    365366    pj_status_t status; 
    366367 
     
    398399        status = pjsip_inv_create_ack(inv, rdata->msg_info.cseq->cseq, 
    399400                                      &inv->last_ack); 
    400     } 
     401        if (status != PJ_SUCCESS) 
     402            return status; 
     403    } 
     404 
     405    PJSIP_EVENT_INIT_TX_MSG(ack_e, inv->last_ack); 
    401406 
    402407    /* Send ACK */ 
     
    414419     */ 
    415420    if (inv->state < PJSIP_INV_STATE_CONFIRMED) { 
    416         inv_set_state(inv, PJSIP_INV_STATE_CONFIRMED, e); 
     421        inv_set_state(inv, PJSIP_INV_STATE_CONFIRMED, &ack_e); 
    417422    } 
    418423 
Note: See TracChangeset for help on using the changeset viewer.