3 #define PJ_MAX_HOSTNAME 256
4 #define PJSIP_MAX_URL_SIZE 512
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.
13 #include <sys/select.h>
14 #ifdef PJ_HAS_LINUX_EPOLL
15 #define PJ_IOQUEUE_MAX_HANDLES (5000)
17 #define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
19 #define PJ_IOQUEUE_HAS_SAFE_UNREG 1
20 #define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
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)
31 #define PJSIP_SAFE_MODULE 0
32 #define PJ_HAS_STRICMP_ALNUM 0
33 #define PJ_HASH_USE_OWN_TOLOWER 1
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.
38 #undef PJSIP_UNESCAPE_IN_PLACE
39 #define PJSIP_MAX_PKT_LEN 6000
44 /* Defaults too low for WebRTC */
45 #define PJ_ICE_MAX_CAND 32
46 #define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)
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 '_')
55 #undef PJ_HASH_USE_OWN_TOLOWER