summaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2016-06-29 15:09:02 -0500
committerMatt Jordan <mjordan@digium.com>2016-06-29 15:11:26 -0500
commit9129ac8e73924e856217a222869c35b095c8bf8b (patch)
tree395d55de03ef1b285408fea5f7d32c9ff5ab4e5b /third-party
parentfab67b8b4ddff86d8eab0589d70551dd665ff65c (diff)
pjproject/patches/config_site: Increase the max number of ICE candidates
When negotiating ICE candidates with WebRTC capable endpoints, many networks will result in a browser offering ICE candidates that exceeds the default number of max candidates, 16. This patch bumps the max candidates to 32, with the max checks at twice the number of candidates. In practice, this has shown to be sufficient for browser/WebRTC negotiation. Change-Id: Ifd8da8b315f5ae14814d4ce20e10d2e6355020e5
Diffstat (limited to 'third-party')
-rw-r--r--third-party/pjproject/patches/config_site.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/third-party/pjproject/patches/config_site.h b/third-party/pjproject/patches/config_site.h
index 8e854b723..eb9f8b15c 100644
--- a/third-party/pjproject/patches/config_site.h
+++ b/third-party/pjproject/patches/config_site.h
@@ -37,3 +37,7 @@
#undef PJ_TODO
#define PJ_TODO(x)
+
+/* Defaults too low for WebRTC */
+#define PJ_ICE_MAX_CAND 32
+#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)