Debian Codegraph @

third-party/pjproject/patches/config_site.h

raw symbols SCIP
1 /*
2 * Asterisk config_site.h
3 */
4
5 #include <sys/select.h>
6
7 /*
8 * Since both pjproject and asterisk source files will include config_site.h,
9 * we need to make sure that only pjproject source files include asterisk_malloc_debug.h.
10 */
11 #if !defined(_ASTERISK_ASTMM_H)
12 #include "asterisk_malloc_debug.h"
13 #endif
14
15 /*
16 * Defining PJMEDIA_HAS_SRTP to 0 does NOT disable Asterisk's ability to use srtp.
17 * It only disables the pjmedia srtp transport which Asterisk doesn't use.
18 * The reason for the disable is that while Asterisk works fine with older libsrtp
19 * versions, newer versions of pjproject won't compile with them.
20 */
21 #define PJMEDIA_HAS_SRTP 0
22
23 #define PJ_HAS_IPV6 1
24 #if !defined(AST_DEVMODE) && !defined(PJPROJECT_BUNDLED_ASSERTIONS)
25 #define NDEBUG 1
26 #endif
27
28 #define PJ_MAX_HOSTNAME (256)
29 #define PJSIP_MAX_URL_SIZE (512)
30 #ifdef PJ_HAS_LINUX_EPOLL
31 #define PJ_IOQUEUE_MAX_HANDLES (5000)
32 #else
33 #define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
34 #endif
35 #define PJ_IOQUEUE_HAS_SAFE_UNREG 1
36 #define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
37
38 /*
39 * Increase the number of socket options available. This adjustment is necessary
40 * to accommodate additional TCP keepalive settings required for optimizing SIP
41 * transport stability, especially in environments prone to connection timeouts.
42 * The default limit is insufficient when configuring all desired keepalive
43 * parameters along with standard socket options.
44 */
45 #define PJ_MAX_SOCKOPT_PARAMS 5
46
47 #define PJ_SCANNER_USE_BITWISE 0
48 #define PJ_OS_HAS_CHECK_STACK 0
49
50 #ifndef PJ_LOG_MAX_LEVEL
51 #define PJ_LOG_MAX_LEVEL 6
52 #endif
53
54 #define PJ_ENABLE_EXTRA_CHECK 1
55 #define PJSIP_MAX_TSX_COUNT ((64*1024)-1)
56 #define PJSIP_MAX_DIALOG_COUNT ((64*1024)-1)
57 #define PJSIP_UDP_SO_SNDBUF_SIZE (512*1024)
58 #define PJSIP_UDP_SO_RCVBUF_SIZE (512*1024)
59 #define PJ_DEBUG 0
60 #define PJSIP_SAFE_MODULE 0
61 #define PJ_HAS_STRICMP_ALNUM 0
62
63 /*
64 * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is
65 * inconsistently used when calculating the hash value and doesn't
66 * convert the same characters as pj_tolower()/tolower(). Thus you
67 * can get different hash values if the string hashed has certain
68 * characters in it. (ASCII '@', '[', '\\', ']', '^', and '_')
69 */
70 #undef PJ_HASH_USE_OWN_TOLOWER
71
72 /*
73 It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
74 Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
75 */
76 #undef PJSIP_UNESCAPE_IN_PLACE
77 #define PJSIP_MAX_PKT_LEN 65535
78
79 #undef PJ_TODO
80 #define PJ_TODO(x)
81
82 /* Defaults too low for WebRTC */
83 #define PJ_ICE_MAX_CAND 64
84 #define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * PJ_ICE_MAX_CAND)
85
86 /* Increase limits to allow more formats */
87 #define PJMEDIA_MAX_SDP_FMT 72
88 #define PJMEDIA_MAX_SDP_BANDW 4
89 #define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*6 + 4)
90 #define PJMEDIA_MAX_SDP_MEDIA 16
91
92 /*
93 * Turn off the periodic sending of CRLNCRLN. Default is on (90 seconds),
94 * which conflicts with the global section's keep_alive_interval option in
95 * pjsip.conf.
96 */
97 #define PJSIP_TCP_KEEP_ALIVE_INTERVAL 0
98 #define PJSIP_TLS_KEEP_ALIVE_INTERVAL 0
99
100 #define PJSIP_TSX_UAS_CONTINUE_ON_TP_ERROR 0
101 #define PJ_SSL_SOCK_OSSL_USE_THREAD_CB 0
102 #define PJSIP_AUTH_ALLOW_MULTIPLE_AUTH_HEADER 0
103
104 /*
105 * The default is 32 with 8 being used by pjproject itself.
106 * Since this value is used in invites, dialogs, transports
107 * and subscriptions as well as the global pjproject endpoint,
108 * we don't want to increase it too much.
109 */
110 #define PJSIP_MAX_MODULE 38
111
112 /*
113 * Disable ICE check for source address match. Asterisk handles
114 * this itself and having both enabled causes the rtp stream
115 * to not be established correctly.
116 */
117
118 #define PJ_ICE_SESS_CHECK_SRC_ADDR 0
119
120 /*
121 * Disables internal absorption of retransmitted INVITE requests
122 * after ACK, restoring legacy behavior where retransmissions
123 * are forwarded to the application layer instead of being
124 * silently handled by the PJSIP stack.
125 */
126
127 #define PJSIP_INV_ABSORB_RETRANS_AFTER_ACK 0