Ignore:
Timestamp:
Jun 26, 2007 8:23:18 AM (17 years ago)
Author:
bennylp
Message:

Ticket #342: added configuration to control whether Allow header should be included in outgoing INVITE requests

File:
1 edited

Legend:

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

    r1379 r1390  
    114114}; 
    115115 
     116/* Config */ 
     117extern pj_bool_t pjsip_include_allow_hdr_in_dlg; 
    116118 
    117119/* 
     
    11541156 
    11551157    /* Add Allow header. */ 
    1156     hdr = pjsip_endpt_get_capability(inv->dlg->endpt, PJSIP_H_ALLOW, NULL); 
    1157     if (hdr) { 
    1158         pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) 
    1159                           pjsip_hdr_shallow_clone(tdata->pool, hdr)); 
     1158    if (pjsip_include_allow_hdr_in_dlg) { 
     1159        hdr = pjsip_endpt_get_capability(inv->dlg->endpt, PJSIP_H_ALLOW, NULL); 
     1160        if (hdr) { 
     1161            pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) 
     1162                              pjsip_hdr_shallow_clone(tdata->pool, hdr)); 
     1163        } 
    11601164    } 
    11611165 
Note: See TracChangeset for help on using the changeset viewer.