It is not recommended to enable 100rel at this time.
-->
<!--<param name="enable-100rel" value="true"/>-->
+ <!-- Enable Compact SIP headers. -->
+ <!--<param name="enable-compact-headers" value="true"/>-->
<!--
enable/disable session timers
-->
#include "sofia-sip/msg_parser.h"
#include "sofia-sip/sip_parser.h"
#include "sofia-sip/tport_tag.h"
-
+#include <sofia-sip/msg.h>
typedef enum {
DTMF_2833,
PFLAG_RTP_AUTOFLUSH_DURING_BRIDGE,
PFLAG_MANUAL_REDIRECT,
PFLAG_AUTO_NAT,
+ PFLAG_SIPCOMPACT,
/* No new flags below this line */
PFLAG_MAX
} PFLAGS;
NTATAG_DEFAULT_PROXY(profile->outbound_proxy),
NTATAG_SERVER_RPORT(profile->rport_level),
TPTAG_LOG(sofia_test_flag(profile, TFLAG_TPORT_LOG)),
+ TAG_IF(sofia_test_pflag(profile, PFLAG_SIPCOMPACT), NTATAG_SIPFLAGS(MSG_DO_COMPACT)),
TAG_IF(profile->timer_t1, NTATAG_SIP_T1(profile->timer_t1)),
TAG_IF(profile->timer_t1x64, NTATAG_SIP_T1X64(profile->timer_t1x64)),
TAG_IF(profile->timer_t2, NTATAG_SIP_T2(profile->timer_t2)),
if (switch_true(val)) {
sofia_clear_pflag(profile, PFLAG_DISABLE_100REL);
}
+ } else if (!strcasecmp(var, "enable-compact-headers")) {
+ if (switch_true(val)) {
+ sofia_set_pflag(profile, PFLAG_SIPCOMPACT);
+ }
} else if (!strcasecmp(var, "bitpacking")) {
if (!strcasecmp(val, "aal2")) {
profile->codec_flags = SWITCH_CODEC_FLAG_AAL2;