Skip to content
Snippets Groups Projects
Commit a47f5163 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

contrib: increase pjsip maximum local hosts capacity

This maximum was 8 (in fact 7 as pjsip reserves 1 room for internal usage).
Linux kernel supports 16 IPv6 that could overload this size and prevents
IPv4 to be added.
Increasing this number to 32.

Change-Id: I61c12c7fdb1dace97c524e681bd6fdaa239e1c11
parent 9da97f19
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
-# define PJ_ICE_MAX_CAND 16 -# define PJ_ICE_MAX_CAND 16
+# define PJ_ICE_MAX_CAND 256 +# define PJ_ICE_MAX_CAND 256
#endif #endif
@@ -243,3 +243,3 @@
#ifndef PJ_ICE_ST_MAX_CAND
-# define PJ_ICE_ST_MAX_CAND 8
+# define PJ_ICE_ST_MAX_CAND 32
#endif
@@ -254,3 +254,3 @@ @@ -254,3 +254,3 @@
#ifndef PJ_ICE_MAX_STUN #ifndef PJ_ICE_MAX_STUN
-# define PJ_ICE_MAX_STUN 2 -# define PJ_ICE_MAX_STUN 2
...@@ -20,4 +25,3 @@ ...@@ -20,4 +25,3 @@
-# define PJ_ICE_MAX_CHECKS 32 -# define PJ_ICE_MAX_CHECKS 32
+# define PJ_ICE_MAX_CHECKS 150 +# define PJ_ICE_MAX_CHECKS 150
#endif #endif
\ No newline at end of file
...@@ -34,8 +34,8 @@ ifdef HAVE_IOS ...@@ -34,8 +34,8 @@ ifdef HAVE_IOS
PJPROJECT_OPTIONS += --with-ssl=$(PREFIX) PJPROJECT_OPTIONS += --with-ssl=$(PREFIX)
endif endif
PJPROJECT_EXTRA_CFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 PJPROJECT_EXTRA_CFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -DPJ_ICE_ST_MAX_CAND=32
PJPROJECT_EXTRA_CXXFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -std=gnu++11 PJPROJECT_EXTRA_CXXFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -DPJ_ICE_ST_MAX_CAND=32 -std=gnu++11
ifdef HAVE_WIN64 ifdef HAVE_WIN64
PJPROJECT_EXTRA_CFLAGS += -DPJ_WIN64=1 PJPROJECT_EXTRA_CFLAGS += -DPJ_WIN64=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment