This structure describes PJSIP run-time configurations/settings. Application may use pjsip_cfg() function to modify the settings before creating the stack.
Encode SIP headers in their short forms to reduce size. By default, SIP headers in outgoing messages will be encoded in their full names. If this option is enabled, then SIP headers for outgoing messages will be encoded in their short forms, to reduce message size. Note that this does not affect the ability of PJSIP to parse incoming SIP messages, as the parser always supports parsing both the long and short version of the headers.
Default is PJSIP_ENCODE_SHORT_HNAME
long pjsip_cfg_t::keep_alive_interval |
Set the interval to send keep-alive packet for TCP transports. If the value is zero, keep-alive will be disabled for TCP.
Default is PJSIP_TCP_KEEP_ALIVE_INTERVAL.
Set the interval to send keep-alive packet for TLS transports. If the value is zero, keep-alive will be disabled for TLS.
Default is PJSIP_TLS_KEEP_ALIVE_INTERVAL.