--- /dev/null
+++ b/pjlib/include/pj/config_site.h
-@@ -0,0 +1,92 @@
+@@ -0,0 +1,79 @@
+/*
+ * Asterisk config_site.h
+ */
+#include <sys/select.h>
+
+/*
-+ * Since both pjproject and asterisk source files will include config_site.h,
-+ * we need to make sure that only pjproject source files include asterisk_malloc_debug.h.
-+ */
-+
-+/* #if defined(MALLOC_DEBUG) && !defined(_ASTERISK_ASTMM_H)
-+ * #include "asterisk_malloc_debug.h"
-+ * #endif
-+ */
-+
-+/*
+ * Defining PJMEDIA_HAS_SRTP to 0 does NOT disable Asterisk's ability to use srtp.
+ * It only disables the pjmedia srtp transport which Asterisk doesn't use.
+ * The reason for the disable is that while Asterisk works fine with older libsrtp
+ * versions, newer versions of pjproject won't compile with them.
+ */
-+
-+/*
-+ * This doesn't disable SRTP completely, so we have to keep using the external
-+ * libsrtp, otherwise pjsip would just build the internal one.
-+ */
-+
+#define PJMEDIA_HAS_SRTP 0
+
-+/*
-+ * Defining PJMEDIA_HAS_WEBRTC_AEC to 0 does NOT disable Asterisk's ability to use
-+ * webrtc. It only disables the pjmedia webrtc transport which Asterisk doesn't use.
-+ */
-+#define PJMEDIA_HAS_WEBRTC_AEC 0
-+
+#define PJ_HAS_IPV6 1
+#define NDEBUG 1
++
+#define PJ_MAX_HOSTNAME (256)
+#define PJSIP_MAX_URL_SIZE (512)
+#ifdef PJ_HAS_LINUX_EPOLL
+ Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
+*/
+#undef PJSIP_UNESCAPE_IN_PLACE
-+#define PJSIP_MAX_PKT_LEN 6000
++#define PJSIP_MAX_PKT_LEN 32000
+
+#undef PJ_TODO
+#define PJ_TODO(x)
+#define PJMEDIA_MAX_SDP_BANDW 4
+#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*2 + 4)
+#define PJMEDIA_MAX_SDP_MEDIA 16
++
++/*
++ * Turn off the periodic sending of CRLNCRLN. Default is on (90 seconds),
++ * which conflicts with the global section's keep_alive_interval option in
++ * pjsip.conf.
++ */
++#define PJSIP_TCP_KEEP_ALIVE_INTERVAL 0
++#define PJSIP_TLS_KEEP_ALIVE_INTERVAL 0