Changeset 4401 for pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c
- Timestamp:
- Feb 27, 2013 2:38:36 PM (12 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4323
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c
r4396 r4401 2484 2484 pjsip_tx_data *tdata = NULL; 2485 2485 pjmedia_sdp_session *sdp_copy; 2486 const pjsip_hdr *hdr; 2486 2487 pj_status_t status = PJ_SUCCESS; 2487 2488 … … 2550 2551 } 2551 2552 2552 /* Unlock dialog. */ 2553 pjsip_dlg_dec_lock(inv->dlg); 2553 /* Session Timers spec (RFC 4028) says that Supported header MUST be put 2554 * in refresh requests. So here we'll just put the Supported header in 2555 * all cases regardless of whether session timers is used or not, just 2556 * in case this is a common behavior. 2557 */ 2558 hdr = pjsip_endpt_get_capability(inv->dlg->endpt, PJSIP_H_SUPPORTED, NULL); 2559 if (hdr) { 2560 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) 2561 pjsip_hdr_shallow_clone(tdata->pool, hdr)); 2562 } 2554 2563 2555 2564 status = pjsip_timer_update_req(inv, tdata); 2556 2565 if (status != PJ_SUCCESS) 2557 2566 goto on_error; 2567 2568 /* Unlock dialog. */ 2569 pjsip_dlg_dec_lock(inv->dlg); 2558 2570 2559 2571 *p_tdata = tdata;
Note: See TracChangeset
for help on using the changeset viewer.