Changeset 5701 for pjproject/trunk/pjsip/include/pjsip/sip_config.h
- Timestamp:
- Nov 22, 2017 6:59:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r5668 r5701 158 158 pj_bool_t disable_secure_dlg_check; 159 159 160 /** 161 * Encode SIP headers in their short forms to reduce size. By default, 162 * SIP headers in outgoing messages will be encoded in their full names. 163 * If this option is enabled, then SIP headers for outgoing messages 164 * will be encoded in their short forms, to reduce message size. 165 * Note that this does not affect the ability of PJSIP to parse incoming 166 * SIP messages, as the parser always supports parsing both the long 167 * and short version of the headers. 168 * 169 * Default is PJSIP_ENCODE_SHORT_HNAME 170 */ 171 pj_bool_t use_compact_form; 172 160 173 } endpt; 161 174 … … 465 478 * and short version of the headers. 466 479 * 467 * Note that there is also an undocumented variable defined in sip_msg.c 468 * to control whether compact form should be used for encoding SIP 469 * headers. The default value of this variable is PJSIP_ENCODE_SHORT_HNAME. 470 * To change PJSIP behavior during run-time, application can use the 471 * following construct: 472 * 473 \verbatim 474 extern pj_bool_t pjsip_use_compact_form; 475 476 // enable compact form 477 pjsip_use_compact_form = PJ_TRUE; 478 \endverbatim 480 * This option can also be controlled at run-time by the 481 * \a use_compact_form setting in pjsip_cfg_t. 479 482 * 480 483 * Default is 0 (no)
Note: See TracChangeset
for help on using the changeset viewer.