]> git.pld-linux.org Git - packages/pjproject.git/blob - config_site.h
disable PJ_HASH_USE_OWN_TOLOWER, as Digium recommends
[packages/pjproject.git] / config_site.h
1 #define NDEBUG 1
2 #define PJ_HAS_IPV6 1
3 #define PJ_MAX_HOSTNAME 256
4 #define PJSIP_MAX_URL_SIZE 512
5  
6 /* The upper limit on MAX_HANDLES is determined by
7  * the value of FD_SETSIZE on your system.  For Linux
8  * this is usually 1024.  The following code sets it
9  * to whatever FD_SETSIZE is or you can set it to a
10  * specific number yourself.  pjproject will not
11  * compile if you set it to greater than FD_SETSIZE.
12  */
13 #include <sys/select.h>
14 #ifdef PJ_HAS_LINUX_EPOLL
15 #define PJ_IOQUEUE_MAX_HANDLES  (5000)
16 #else
17 #define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
18 #endif
19 #define PJ_IOQUEUE_HAS_SAFE_UNREG 1
20 #define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
21
22 #define PJ_SCANNER_USE_BITWISE  0
23 #define PJ_OS_HAS_CHECK_STACK   0
24 #define PJ_LOG_MAX_LEVEL        3
25 #define PJ_ENABLE_EXTRA_CHECK   1
26 #define PJSIP_MAX_TSX_COUNT     ((64*1024)-1)
27 #define PJSIP_MAX_DIALOG_COUNT  ((64*1024)-1)
28 #define PJSIP_UDP_SO_SNDBUF_SIZE    (512*1024)
29 #define PJSIP_UDP_SO_RCVBUF_SIZE    (512*1024)
30 #define PJ_DEBUG            0
31 #define PJSIP_SAFE_MODULE       0
32 #define PJ_HAS_STRICMP_ALNUM        0
33 #define PJ_HASH_USE_OWN_TOLOWER     1
34 /*
35   It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
36   Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
37 */
38 #undef PJSIP_UNESCAPE_IN_PLACE
39 #define PJSIP_MAX_PKT_LEN                       6000
40
41 #undef PJ_TODO
42 #define PJ_TODO(x)
43
44 /* Defaults too low for WebRTC */
45 #define PJ_ICE_MAX_CAND 32
46 #define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)
47
48 /*
49  * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is
50  * inconsistently used when calculating the hash value and doesn't
51  * convert the same characters as pj_tolower()/tolower().  Thus you
52  * can get different hash values if the string hashed has certain
53  * characters in it.  (ASCII '@', '[', '\\', ']', '^', and '_')
54  */
55 #undef PJ_HASH_USE_OWN_TOLOWER
This page took 0.177202 seconds and 3 git commands to generate.