Skip to content
Snippets Groups Projects
Commit 3d3a8f67 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

pjproject: disable PJ_ACTIVESOCK_TCP_IPHONE_OS_BG on iOS 16

Source: https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#Commonproblems

kCFStreamNetworkServiceTypeVoIP is not supported anymore for iOS
and will cause crash on iOS 16.0.

Change-Id: I75ed0b1bfb1f7b89fe5dbf9c1e1baf0089fad7b3
parent 0b1b9ee7
Branches
No related tags found
No related merge requests found
pjlib/include/pj/compat/os_auto.h.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in
index 10e08f0bd..dd5e642ea 100644
--- a/pjlib/include/pj/compat/os_auto.h.in
+++ b/pjlib/include/pj/compat/os_auto.h.in
@@ -199,7 +199,11 @@
/* Is multitasking support available? (see ticket #1107) */
# define PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT 1
/* Enable activesock TCP background mode support */
-# define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG 1
+# ifdef __IPHONE_16_0
+# define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG 0
+# else
+# define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG 1
+# endif
# endif
# endif
#endif
......@@ -51,6 +51,7 @@ ifdef HAVE_ANDROID
endif
ifdef HAVE_IOS
$(APPLY) $(SRC)/pjproject/0003-disable-ios-pointtopoint.patch
$(APPLY) $(SRC)/pjproject/0004-ios-16.patch
endif
$(UPDATE_AUTOCONFIG)
$(MOVE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment