Changeset 4754


Ignore:
Timestamp:
Feb 21, 2014 7:24:18 AM (8 years ago)
Author:
bennylp
Message:

More #1712: Handle case when 200/OK is not ACKed and inv needs to send BYE. In this case, ACK will never be received so don't wait for it. Similar treatment for transport error

File:
1 edited

Legend:

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

    r4716 r4754  
    29542954        if (tdata->msg->line.req.method.id == PJSIP_BYE_METHOD && 
    29552955            inv->role == PJSIP_ROLE_UAS && 
    2956             inv->state == PJSIP_INV_STATE_CONNECTING) 
     2956            inv->state == PJSIP_INV_STATE_CONNECTING && 
     2957            inv->cause != PJSIP_SC_REQUEST_TIMEOUT && 
     2958            inv->cause != PJSIP_SC_TSX_TRANSPORT_ERROR) 
    29572959        { 
    29582960            if (inv->pending_bye) 
     
    42144216                    pj_status_t status; 
    42154217 
     4218                    inv_set_cause(inv, tsx->status_code, &tsx->status_text); 
     4219 
    42164220                    /* Send BYE */ 
    42174221                    status = pjsip_dlg_create_request(inv->dlg, 
Note: See TracChangeset for help on using the changeset viewer.