Ignore:
Timestamp:
Jun 24, 2009 6:52:57 PM (15 years ago)
Author:
bennylp
Message:

Ticket #795: merged changes from ticket #794

Location:
pjproject/branches/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0

  • pjproject/branches/1.0/pjsip/src/pjsip-ua/sip_inv.c

    r2394 r2795  
    22472247    } 
    22482248 
     2249    /* Notify negotiator about the new offer. This will fix the offer 
     2250     * with correct SDP origin. 
     2251     */ 
    22492252    status = pjmedia_sdp_neg_modify_local_offer(inv->pool,inv->neg, 
    22502253                                                offer); 
     
    22522255        goto on_error; 
    22532256 
     2257    /* Retrieve the "fixed" offer from negotiator */ 
     2258    pjmedia_sdp_neg_get_neg_local(inv->neg, &offer); 
    22542259 
    22552260    /* Update Contact if required */ 
     
    36183623                    (*mod_inv.cb.on_create_offer)(inv, &sdp); 
    36193624                    if (sdp) { 
     3625                        /* Notify negotiator about the new offer. This will 
     3626                         * fix the offer with correct SDP origin. 
     3627                         */ 
    36203628                        status = pjmedia_sdp_neg_modify_local_offer(dlg->pool, 
    36213629                                                                    inv->neg, 
    36223630                                                                    sdp); 
     3631 
     3632                        /* Retrieve the "fixed" offer from negotiator */ 
     3633                        if (status==PJ_SUCCESS) { 
     3634                            const pjmedia_sdp_session *lsdp = NULL; 
     3635                            pjmedia_sdp_neg_get_neg_local(inv->neg, &lsdp); 
     3636                            sdp = (pjmedia_sdp_session*)lsdp; 
     3637                        } 
    36233638                    } 
    36243639                }  
Note: See TracChangeset for help on using the changeset viewer.