OpenSSL names are available on their system for the pjsip.conf cipher
option.
+ - Added the pjsip.conf system type disable_tcp_switch option. The option
+ allows the user to disable switching from UDP to TCP transports described
+ by RFC 3261 section 18.1.1.
+
From 12.6.0 to 12.6.1:
- Due to the POODLE vulnerability (see
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3566), the
; should be disposed of (default: "60")
;threadpool_max_size=0 ; Maximum number of threads in the res_pjsip threadpool
; A value of 0 indicates no maximum (default: "0")
+;disable_tcp_switch=no ; Disable automatic switching from UDP to TCP transports
+ ; if outgoing request is too large.
+ ; See RFC 3261 section 18.1.1.
+ ; (default: "no")
;type= ; Must be of type system (default: "")
;==========================GLOBAL SECTION OPTIONS=========================
<synopsis>Maximum number of threads in the res_pjsip threadpool.
A value of 0 indicates no maximum.</synopsis>
</configOption>
+ <configOption name="disable_tcp_switch" default="no">
+ <synopsis>Disable automatic switching from UDP to TCP transports.</synopsis>
+ <description><para>
+ Disable automatic switching from UDP to TCP transports if outgoing
+ request is too large. See RFC 3261 section 18.1.1.
+ </para></description>
+ </configOption>
<configOption name="type">
<synopsis>Must be of type 'system'.</synopsis>
</configOption>
/*! Maxumum number of threads in the threadpool */
int max_size;
} threadpool;
+ /*! Nonzero to disable switching from UDP to TCP transport */
+ unsigned int disable_tcp_switch;
};
static struct ast_threadpool_options sip_threadpool_options = {
if (system->compactheaders) {
extern pj_bool_t pjsip_use_compact_form;
+
pjsip_use_compact_form = PJ_TRUE;
}
sip_threadpool_options.idle_timeout = system->threadpool.idle_timeout;
sip_threadpool_options.max_size = system->threadpool.max_size;
+ pjsip_cfg()->endpt.disable_tcp_switch =
+ system->disable_tcp_switch ? PJ_TRUE : PJ_FALSE;
+
return 0;
}
OPT_UINT_T, 0, FLDSET(struct system_config, threadpool.idle_timeout));
ast_sorcery_object_field_register(system_sorcery, "system", "threadpool_max_size", "0",
OPT_UINT_T, 0, FLDSET(struct system_config, threadpool.max_size));
+ ast_sorcery_object_field_register(system_sorcery, "system", "disable_tcp_switch", "no",
+ OPT_BOOL_T, 1, FLDSET(struct system_config, disable_tcp_switch));
ast_sorcery_load(system_sorcery);