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/pjsip-ua/sip_inv.c

    r2594 r2643  
    22492249    } 
    22502250 
     2251    /* Notify negotiator about the new offer. This will fix the offer 
     2252     * with correct SDP origin. 
     2253     */ 
    22512254    status = pjmedia_sdp_neg_modify_local_offer(inv->pool,inv->neg, 
    22522255                                                offer); 
     
    22542257        goto on_error; 
    22552258 
     2259    /* Retrieve the "fixed" offer from negotiator */ 
     2260    pjmedia_sdp_neg_get_neg_local(inv->neg, &offer); 
    22562261 
    22572262    /* Update Contact if required */ 
     
    36203625                    (*mod_inv.cb.on_create_offer)(inv, &sdp); 
    36213626                    if (sdp) { 
     3627                        /* Notify negotiator about the new offer. This will 
     3628                         * fix the offer with correct SDP origin. 
     3629                         */ 
    36223630                        status = pjmedia_sdp_neg_modify_local_offer(dlg->pool, 
    36233631                                                                    inv->neg, 
    36243632                                                                    sdp); 
     3633 
     3634                        /* Retrieve the "fixed" offer from negotiator */ 
     3635                        if (status==PJ_SUCCESS) 
     3636                            pjmedia_sdp_neg_get_neg_local(inv->neg, &sdp); 
    36253637                    } 
    36263638                }  
Note: See TracChangeset for help on using the changeset viewer.