- Timestamp:
- Nov 5, 2007 5:54:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1538 r1549 72 72 pjmedia_sdp_session **p_answer); 73 73 74 /* Update SDP version in the offer */ 75 static void update_sdp_version(pjsua_call *call, 76 pjmedia_sdp_session *sdp) 77 { 78 const pjmedia_sdp_session *old_sdp = NULL; 79 pj_status_t status; 80 81 status = pjmedia_sdp_neg_get_active_local(call->inv->neg, &old_sdp); 82 if (status != PJ_SUCCESS || old_sdp == NULL) 83 return; 84 85 sdp->origin.version = old_sdp->origin.version + 1; 86 } 87 88 74 89 /* 75 90 * Callback called by event framework when the xfer subscription state … … 1223 1238 } 1224 1239 1240 update_sdp_version(call, sdp); 1241 1225 1242 /* Create re-INVITE with new offer */ 1226 1243 status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata); … … 1293 1310 return status; 1294 1311 } 1312 1313 update_sdp_version(call, sdp); 1295 1314 1296 1315 /* Create re-INVITE with new offer */ … … 2507 2526 } 2508 2527 2528 update_sdp_version(call, *offer); 2509 2529 2510 2530 PJSUA_UNLOCK();
Note: See TracChangeset
for help on using the changeset viewer.