2 +++ b/pjlib/include/pj/config_site.h
5 + * Asterisk config_site.h
8 +#include <sys/select.h>
11 + * Defining PJMEDIA_HAS_SRTP to 0 does NOT disable Asterisk's ability to use srtp.
12 + * It only disables the pjmedia srtp transport which Asterisk doesn't use.
13 + * The reason for the disable is that while Asterisk works fine with older libsrtp
14 + * versions, newer versions of pjproject won't compile with them.
16 +#define PJMEDIA_HAS_SRTP 0
18 +#define PJ_HAS_IPV6 1
21 +#define PJ_MAX_HOSTNAME (256)
22 +#define PJSIP_MAX_URL_SIZE (512)
23 +#ifdef PJ_HAS_LINUX_EPOLL
24 +#define PJ_IOQUEUE_MAX_HANDLES (5000)
26 +#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
28 +#define PJ_IOQUEUE_HAS_SAFE_UNREG 1
29 +#define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
31 +#define PJ_SCANNER_USE_BITWISE 0
32 +#define PJ_OS_HAS_CHECK_STACK 0
34 +#ifndef PJ_LOG_MAX_LEVEL
35 +#define PJ_LOG_MAX_LEVEL 6
38 +#define PJ_ENABLE_EXTRA_CHECK 1
39 +#define PJSIP_MAX_TSX_COUNT ((64*1024)-1)
40 +#define PJSIP_MAX_DIALOG_COUNT ((64*1024)-1)
41 +#define PJSIP_UDP_SO_SNDBUF_SIZE (512*1024)
42 +#define PJSIP_UDP_SO_RCVBUF_SIZE (512*1024)
44 +#define PJSIP_SAFE_MODULE 0
45 +#define PJ_HAS_STRICMP_ALNUM 0
48 + * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is
49 + * inconsistently used when calculating the hash value and doesn't
50 + * convert the same characters as pj_tolower()/tolower(). Thus you
51 + * can get different hash values if the string hashed has certain
52 + * characters in it. (ASCII '@', '[', '\\', ']', '^', and '_')
54 +#undef PJ_HASH_USE_OWN_TOLOWER
57 + It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
58 + Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
60 +#undef PJSIP_UNESCAPE_IN_PLACE
61 +#define PJSIP_MAX_PKT_LEN 32000
66 +/* Defaults too low for WebRTC */
67 +#define PJ_ICE_MAX_CAND 32
68 +#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * PJ_ICE_MAX_CAND)
70 +/* Increase limits to allow more formats */
71 +#define PJMEDIA_MAX_SDP_FMT 64
72 +#define PJMEDIA_MAX_SDP_BANDW 4
73 +#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*2 + 4)
74 +#define PJMEDIA_MAX_SDP_MEDIA 16
77 + * Turn off the periodic sending of CRLNCRLN. Default is on (90 seconds),
78 + * which conflicts with the global section's keep_alive_interval option in
81 +#define PJSIP_TCP_KEEP_ALIVE_INTERVAL 0
82 +#define PJSIP_TLS_KEEP_ALIVE_INTERVAL 0