Changes between Version 121 and Version 122 of FAQ


Ignore:
Timestamp:
Mar 13, 2014 9:20:52 PM (10 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v121 v122  
    843843 
    844844Please see ticket #342 for info. Basically there are few settings to configure to make PJSIP sends smaller packet: 
    845  1. Configure PJSIP to send compact form of SIP headers, by setting {{{PJSIP_ENCODE_SHORT_HNAME}}} macro to 1 in {{{config_site.h}}}. This will reduce SIP message size by approximately 50 bytes. 
     845 1. Configure PJSIP to send compact form of SIP headers, as follows. This will reduce SIP message size by approximately 50 bytes. 
     846  {{{ 
     847   extern pj_bool_t pjsip_use_compact_form; 
     848  
     849   // enable compact form 
     850   pjsip_use_compact_form = PJ_TRUE; 
     851  }}} 
    846852 1. Suppress the inclusion of ''Allow'' header in outgoing requests, by setting {{{PJSIP_INCLUDE_ALLOW_HDR_IN_DLG}}} macro to 0 in {{{config_site.h}}}. This will reduce SIP message size by approximately 86 bytes. 
    847853 1. Suppress the inclusion of SDP {{{rtpmap}}} attribute for static payload types, by setting {{{PJMEDIA_ADD_RTPMAP_FOR_STATIC_PT}}} macro to 0 in {{{config_site.h}}}. Note that this setting should not cause bad effects for communication, since SDP {{{rtpmap}}} attributes for static payload types are optional. This will reduce SIP message size by approximately 65 bytes.