Changeset 4156 for pjproject


Ignore:
Timestamp:
Jun 6, 2012 7:24:08 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1530: Sending ACK is reported with wrong pjsip_event info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r4082 r4156  
    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.