Ignore:
Timestamp:
Jun 25, 2009 11:17:17 AM (12 years ago)
Author:
bennylp
Message:

Ticket #799: UAC disconnect call when receiving BYE in early state (thanks Gang Liu for the suggestion)

  • backported changes from #798
File:
1 edited

Legend:

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

    r2799 r2800  
    33603360        /* Generic handling for UAC tsx completion */ 
    33613361        handle_uac_tsx_response(inv, e); 
     3362 
     3363    } else if (tsx->role == PJSIP_ROLE_UAS && 
     3364               tsx->method.id == PJSIP_BYE_METHOD && 
     3365               tsx->status_code < 200 && 
     3366               e->body.tsx_state.type == PJSIP_EVENT_RX_MSG) 
     3367    { 
     3368        /* Received BYE before the 2xx/OK response to INVITE. 
     3369         * Assume that the 2xx/OK response is lost and the BYE 
     3370         * arrives earlier. 
     3371         */ 
     3372        inv_respond_incoming_bye(inv, tsx, e->body.tsx_state.src.rdata, e); 
     3373 
     3374        /* Set timer just in case we will never get the final response 
     3375         * for INVITE. 
     3376         */ 
     3377        pjsip_tsx_set_timeout(inv->invite_tsx, 64*pjsip_cfg()->tsx.t1); 
    33623378    } 
    33633379} 
Note: See TracChangeset for help on using the changeset viewer.