pjproject/patches/config_site: Increase the max number of ICE candidates
[asterisk/asterisk.git] / third-party / pjproject / patches / config_site.h
1 /*
2  * Asterisk config_site.h
3  */
4
5 #include <sys/select.h>
6
7 #define PJ_HAS_IPV6 1
8 #define NDEBUG 1
9 #define PJ_MAX_HOSTNAME (256)
10 #define PJSIP_MAX_URL_SIZE (512)
11 #ifdef PJ_HAS_LINUX_EPOLL
12 #define PJ_IOQUEUE_MAX_HANDLES  (5000)
13 #else
14 #define PJ_IOQUEUE_MAX_HANDLES  (FD_SETSIZE)
15 #endif
16 #define PJ_IOQUEUE_HAS_SAFE_UNREG 1
17 #define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
18
19 #define PJ_SCANNER_USE_BITWISE  0
20 #define PJ_OS_HAS_CHECK_STACK   0
21 #define PJ_LOG_MAX_LEVEL                3
22 #define PJ_ENABLE_EXTRA_CHECK   0
23 #define PJSIP_MAX_TSX_COUNT             ((64*1024)-1)
24 #define PJSIP_MAX_DIALOG_COUNT  ((64*1024)-1)
25 #define PJSIP_UDP_SO_SNDBUF_SIZE        (512*1024)
26 #define PJSIP_UDP_SO_RCVBUF_SIZE        (512*1024)
27 #define PJ_DEBUG                        0
28 #define PJSIP_SAFE_MODULE               0
29 #define PJ_HAS_STRICMP_ALNUM            0
30 #define PJ_HASH_USE_OWN_TOLOWER         1
31 /*
32   It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
33   Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
34 */
35 #undef PJSIP_UNESCAPE_IN_PLACE
36 #define PJSIP_MAX_PKT_LEN                       6000
37
38 #undef PJ_TODO
39 #define PJ_TODO(x)
40
41 /* Defaults too low for WebRTC */
42 #define PJ_ICE_MAX_CAND 32
43 #define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)