diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-06-08 15:30:38 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-06-08 15:30:38 +0000 |
commit | 0a4ec5a59e51744adabf1307fe7e416f08dd4263 (patch) | |
tree | e389ac1e7f4fbedacee06f3959c9a40fc9ada57a /pjsip/include/pjsip/sip_config.h | |
parent | e8a7866ff3c1122d4757a67820b83b6ee1c3efd7 (diff) |
Ticket #831: Added compile-time option to disable/prevent transport switching to TCP.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2756 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_config.h')
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 18 |
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. |