summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsip/sip_config.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h
index d0dde3ed..fe4fbe24 100644
--- a/pjsip/include/pjsip/sip_config.h
+++ b/pjsip/include/pjsip/sip_config.h
@@ -233,14 +233,28 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void)
* using an RFC 2914 [43] congestion controlled transport protocol, such
* as TCP.
*
+ * Disable the behavior of automatic switching to TCP whenever UDP packet
+ * size exceeds the threshold defined in PJSIP_UDP_SIZE_THRESHOLD.
+ *
+ * Default is 0 (no).
+ */
+#ifndef PJSIP_DONT_SWITCH_TO_TCP
+# define PJSIP_DONT_SWITCH_TO_TCP 0
+#endif
+
+
+/**
* This setting controls the threshold of the UDP packet, which if it's
- * larger than this value the request will be sent with TCP. Default is
- * 1300 bytes.
+ * larger than this value the request will be sent with TCP. This setting
+ * is useful only when PJSIP_DONT_SWITCH_TO_TCP is set to 0.
+ *
+ * Default is 1300 bytes.
*/
#ifndef PJSIP_UDP_SIZE_THRESHOLD
# define PJSIP_UDP_SIZE_THRESHOLD 1300
#endif
+
/**
* Encode SIP headers in their short forms to reduce size. By default,
* SIP headers in outgoing messages will be encoded in their full names.