Ignore:
Timestamp:
Apr 23, 2009 11:50:25 AM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #794: Bug with generating SDP version in origin line (thanks Joel Dodson for the report)

  • the INVITE session now correctly uses the SDP offer "fixed" by the negotiator, hence it will have the correct origin fields.
  • removed update_sdp_version() from PJSUA-LIB
  • the negotiator now also fixes the session ID of subsequent answer so that it's identical to the previous SDP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r2593 r2643  
    7878static pj_status_t create_sdp_of_call_hold(pjsua_call *call, 
    7979                                           pjmedia_sdp_session **p_answer); 
    80  
    81 /* Update SDP version in the offer */ 
    82 static void update_sdp_version(pjsua_call *call, 
    83                                pjmedia_sdp_session *sdp) 
    84 { 
    85     const pjmedia_sdp_session *old_sdp = NULL; 
    86     pj_status_t status; 
    87  
    88     status = pjmedia_sdp_neg_get_active_local(call->inv->neg, &old_sdp); 
    89     if (status != PJ_SUCCESS || old_sdp == NULL) 
    90         return; 
    91  
    92     sdp->origin.version = old_sdp->origin.version + 1; 
    93 } 
    94  
    9580 
    9681/* 
     
    15201505    } 
    15211506 
    1522     update_sdp_version(call, sdp); 
    1523  
    15241507    /* Create re-INVITE with new offer */ 
    15251508    status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata); 
     
    15921575    } 
    15931576 
    1594     update_sdp_version(call, sdp); 
    1595  
    15961577    /* Create re-INVITE with new offer */ 
    15971578    status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata); 
     
    16501631        return status; 
    16511632    } 
    1652  
    1653     update_sdp_version(call, sdp); 
    16541633 
    16551634    /* Create UPDATE with new offer */ 
     
    33223301    } 
    33233302 
    3324     update_sdp_version(call, *offer); 
    3325  
    33263303    PJSUA_UNLOCK(); 
    33273304} 
Note: See TracChangeset for help on using the changeset viewer.