Ignore:
Timestamp:
Sep 28, 2012 6:17:11 AM (12 years ago)
Author:
nanang
Message:

Close #1587: Added settings to accept call replace when in early state and as UAS: accept_replace_in_early_state in pjsip_cfg_t and PJSIP_ACCEPT_REPLACE_IN_EARLY_STATE macro.

File:
1 edited

Legend:

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

    r3999 r4267  
    306306     * Exist) response to the new INVITE. 
    307307     */ 
    308     if (inv->state <= PJSIP_INV_STATE_EARLY && inv->role != PJSIP_ROLE_UAC) { 
     308    if (inv->state <= PJSIP_INV_STATE_EARLY && inv->role != PJSIP_ROLE_UAC && 
     309        pjsip_cfg()->endpt.accept_replace_in_early_state == PJ_FALSE) 
     310    { 
    309311        code = PJSIP_SC_CALL_TSX_DOES_NOT_EXIST; 
    310312        warn_text = "Found early INVITE session but not initiated by this UA"; 
Note: See TracChangeset for help on using the changeset viewer.