Changeset 4401 for pjproject


Ignore:
Timestamp:
Feb 27, 2013 2:38:36 PM (11 years ago)
Author:
riza
Message:

Re #1611: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c

    r4396 r4401  
    24842484    pjsip_tx_data *tdata = NULL; 
    24852485    pjmedia_sdp_session *sdp_copy; 
     2486    const pjsip_hdr *hdr; 
    24862487    pj_status_t status = PJ_SUCCESS; 
    24872488 
     
    25502551    } 
    25512552 
    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    } 
    25542563 
    25552564    status = pjsip_timer_update_req(inv, tdata); 
    25562565    if (status != PJ_SUCCESS) 
    25572566        goto on_error; 
     2567 
     2568    /* Unlock dialog. */ 
     2569    pjsip_dlg_dec_lock(inv->dlg); 
    25582570 
    25592571    *p_tdata = tdata; 
Note: See TracChangeset for help on using the changeset viewer.