Changeset 4498


Ignore:
Timestamp:
Apr 24, 2013 9:52:25 AM (6 years ago)
Author:
bennylp
Message:

Fixed #1659: SDP offer version number is not incremented if previous re-INVITE offer was rejected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r4367 r4498  
    13501350                     PJMEDIA_SDPNEG_EINSTATE); 
    13511351 
    1352     /* Reset state to done */ 
    1353     neg->state = PJMEDIA_SDP_NEG_STATE_DONE; 
    1354  
    13551352    /* Clear temporary SDP */ 
    13561353    neg->neg_local_sdp = neg->neg_remote_sdp = NULL; 
    13571354    neg->has_remote_answer = PJ_FALSE; 
     1355 
     1356    if (neg->state == PJMEDIA_SDP_NEG_STATE_LOCAL_OFFER) { 
     1357        /* Increment next version number. This happens if for example 
     1358         * the reinvite offer is rejected by 488. If we don't increment 
     1359         * the version here, the next offer will have the same version. 
     1360         */ 
     1361        neg->active_local_sdp->origin.version++; 
     1362    } 
     1363 
     1364    /* Reset state to done */ 
     1365    neg->state = PJMEDIA_SDP_NEG_STATE_DONE; 
    13581366 
    13591367    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.