Changeset 3964


Ignore:
Timestamp:
Mar 6, 2012 7:18:23 AM (8 years ago)
Author:
bennylp
Message:

Fixed #1460: Allow call to transition to CONFIRMED state even when SDP negotiation is pending if the pending negotiation is an updated offer and not the original one with the INVITE transaction

File:
1 edited

Legend:

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

    r3959 r3964  
    213213     */ 
    214214    if (state == PJSIP_INV_STATE_CONFIRMED) { 
    215         if (pjmedia_sdp_neg_get_state(inv->neg)!=PJMEDIA_SDP_NEG_STATE_DONE) { 
     215        struct tsx_inv_data *tsx_inv_data = NULL; 
     216 
     217        if (inv->invite_tsx) { 
     218            tsx_inv_data = (struct tsx_inv_data*) 
     219                           inv->invite_tsx->mod_data[mod_inv.mod.id]; 
     220        } 
     221 
     222        if (pjmedia_sdp_neg_get_state(inv->neg)!=PJMEDIA_SDP_NEG_STATE_DONE && 
     223            (tsx_inv_data && !tsx_inv_data->sdp_done) ) 
     224        { 
    216225            pjsip_tx_data *bye; 
    217226 
Note: See TracChangeset for help on using the changeset viewer.