Changeset 4421 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Mar 6, 2013 5:55:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4411 r4421 2258 2258 const pjsua_msg_data *msg_data) 2259 2259 { 2260 return pjsua_call_set_hold2(call_id, 0, msg_data); 2261 } 2262 2263 PJ_DEF(pj_status_t) pjsua_call_set_hold2(pjsua_call_id call_id, 2264 unsigned options, 2265 const pjsua_msg_data *msg_data) 2266 { 2260 2267 pjmedia_sdp_session *sdp; 2261 2268 pjsua_call *call; 2262 2269 pjsip_dialog *dlg = NULL; 2263 2270 pjsip_tx_data *tdata; 2271 pj_str_t *new_contact = NULL; 2264 2272 pj_status_t status; 2265 2273 … … 2284 2292 goto on_return; 2285 2293 2294 if ((options & PJSUA_CALL_UPDATE_CONTACT) && 2295 pjsua_acc_is_valid(call->acc_id)) 2296 { 2297 new_contact = &pjsua_var.acc[call->acc_id].contact; 2298 } 2299 2286 2300 /* Create re-INVITE with new offer */ 2287 status = pjsip_inv_reinvite( call->inv, NULL, sdp, &tdata);2301 status = pjsip_inv_reinvite( call->inv, new_contact, sdp, &tdata); 2288 2302 if (status != PJ_SUCCESS) { 2289 2303 pjsua_perror(THIS_FILE, "Unable to create re-INVITE", status);
Note: See TracChangeset
for help on using the changeset viewer.