Changeset 3223


Ignore:
Timestamp:
Jun 24, 2010 1:32:05 PM (14 years ago)
Author:
bennylp
Message:

Fixed #1039: Add Allow header in outgoing REGISTER request (thanks Daniel Anens for the info)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r3128 r3223  
    528528    pjsip_msg *msg; 
    529529    pjsip_contact_hdr *hdr; 
     530    const pjsip_hdr *h_allow; 
    530531    pj_status_t status; 
    531532    pjsip_tx_data *tdata; 
     
    568569        pjsip_endpt_cancel_timer(regc->endpt, &regc->timer); 
    569570        regc->timer.id = 0; 
     571    } 
     572 
     573    /* Add Allow header (http://trac.pjsip.org/repos/ticket/1039) */ 
     574    h_allow = pjsip_endpt_get_capability(regc->endpt, PJSIP_H_ALLOW, NULL); 
     575    if (h_allow) { 
     576        pjsip_msg_add_hdr(msg, (pjsip_hdr*) 
     577                               pjsip_hdr_shallow_clone(tdata->pool, h_allow)); 
     578 
    570579    } 
    571580 
Note: See TracChangeset for help on using the changeset viewer.