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/pjsua-lib/pjsua_call.c

    r2394 r2795  
    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/* 
     
    15081493    } 
    15091494 
    1510     update_sdp_version(call, sdp); 
    1511  
    15121495    /* Create re-INVITE with new offer */ 
    15131496    status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata); 
     
    15801563    } 
    15811564 
    1582     update_sdp_version(call, sdp); 
    1583  
    15841565    /* Create re-INVITE with new offer */ 
    15851566    status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata); 
     
    16381619        return status; 
    16391620    } 
    1640  
    1641     update_sdp_version(call, sdp); 
    16421621 
    16431622    /* Create UPDATE with new offer */ 
     
    33103289    } 
    33113290 
    3312     update_sdp_version(call, *offer); 
    3313  
    33143291    PJSUA_UNLOCK(); 
    33153292} 
Note: See TracChangeset for help on using the changeset viewer.