[packages/pjproject] Use config_site.h suggested by Asterisk wiki
jajcus
jajcus at pld-linux.org
Fri Apr 15 09:05:50 CEST 2016
commit 7f66a9ac5b614eb9d9b1d0c865b9106eb81f1de5
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Apr 15 09:04:11 2016 +0200
Use config_site.h suggested by Asterisk wiki
https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+pjproject
Includes security fix for:
AST-2016-005: TCP denial of service in PJProject
http://downloads.asterisk.org/pub/security/AST-2016-005.html
Release: 3
config_site.h | 36 ++++++++++++++++++++++++++++++++++++
pjproject.spec | 7 +++++--
2 files changed, 41 insertions(+), 2 deletions(-)
---
diff --git a/pjproject.spec b/pjproject.spec
index af3dd61..6b5d93b 100644
--- a/pjproject.spec
+++ b/pjproject.spec
@@ -20,11 +20,12 @@
Summary: PJSIP - free and open source multimedia communication library
Name: pjproject
Version: 2.4.5
-Release: 2
+Release: 3
License: GPL v2+
Group: Libraries
Source0: http://www.pjsip.org/release/%{version}/%{name}-%{version}.tar.bz2
# Source0-md5: f58b3485977b3a700256203a554b3869
+Source1: config_site.h
Patch0: %{name}-ilbc-link.patch
URL: http://www.pjsip.org/
%{?with_video:BuildRequires: SDL2-devel}
@@ -97,11 +98,13 @@ Statyczna biblioteka %{name}.
%setup -q
%patch0 -p1
+cp -p %{SOURCE1} pjlib/include/pj/config_site.h
+
%build
%{__autoconf} -o configure aconfigure.ac
%configure \
- CFLAGS="%{rpmcflags} -DNDEBUG=1 %{?with_video:-DPJMEDIA_HAS_VIDEO=1}" \
+ CFLAGS="%{rpmcflags} %{?with_video:-DPJMEDIA_HAS_VIDEO=1}" \
--enable-shared \
%{__enable_disable sound sound} \
%{__enable_disable video video} \
diff --git a/config_site.h b/config_site.h
new file mode 100644
index 0000000..5cd700e
--- /dev/null
+++ b/config_site.h
@@ -0,0 +1,36 @@
+#define NDEBUG 1
+#define PJ_HAS_IPV6 1
+#define PJ_MAX_HOSTNAME 256
+#define PJSIP_MAX_URL_SIZE 512
+
+/* The upper limit on MAX_HANDLES is determined by
+ * the value of FD_SETSIZE on your system. For Linux
+ * this is usually 1024. The following code sets it
+ * to whatever FD_SETSIZE is or you can set it to a
+ * specific number yourself. pjproject will not
+ * compile if you set it to greater than FD_SETSIZE.
+ */
+#include <sys/select.h>
+#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
+
+/* Set for maximum server performance.
+ * In tests, setting these parameters reduced
+ * CPU load by approximately 25% for the same number
+ * of calls per second. Your results will vary,
+ * of course.
+ */
+#define PJ_SCANNER_USE_BITWISE 0
+#define PJ_OS_HAS_CHECK_STACK 0
+#define PJ_LOG_MAX_LEVEL 3
+#define PJ_ENABLE_EXTRA_CHECK 0
+#define PJSIP_MAX_TSX_COUNT ((64*1024)-1)
+#define PJSIP_MAX_DIALOG_COUNT ((64*1024)-1)
+#define PJSIP_UDP_SO_SNDBUF_SIZE (512*1024)
+#define PJSIP_UDP_SO_RCVBUF_SIZE (512*1024)
+#define PJ_DEBUG 0
+#define PJSIP_SAFE_MODULE 0
+#define PJ_HAS_STRICMP_ALNUM 0
+#define PJ_HASH_USE_OWN_TOLOWER 1
+#define PJSIP_UNESCAPE_IN_PLACE 1
+#undef PJ_TODO
+#define PJ_TODO(x)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pjproject.git/commitdiff/7f66a9ac5b614eb9d9b1d0c865b9106eb81f1de5
More information about the pld-cvs-commit
mailing list