summaryrefslogtreecommitdiff
path: root/pjnath/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-06-25 21:16:46 +0000
committerBenny Prijono <bennylp@teluu.com>2008-06-25 21:16:46 +0000
commit016a4eae3331e0fe7db428ab7381b0fbc93a7267 (patch)
treebfb7bda2734b23901507e403d8661e43cd266572 /pjnath/include
parentbeffb154962293bb6a355a8f734e7f2ab1379718 (diff)
Optimize the number of characters written to SDP by ICE
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2054 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include')
-rw-r--r--pjnath/include/pjnath/config.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/pjnath/include/pjnath/config.h b/pjnath/include/pjnath/config.h
index e002a105..c29de63f 100644
--- a/pjnath/include/pjnath/config.h
+++ b/pjnath/include/pjnath/config.h
@@ -244,12 +244,41 @@
/**
+ * The number of bits to represent component IDs. This will affect
+ * the maximum number of components (PJ_ICE_MAX_COMP) value.
+ */
+#ifndef PJ_ICE_COMP_BITS
+# define PJ_ICE_COMP_BITS 3
+#endif
+
+
+/**
* Maximum number of ICE components.
+ */
+#define PJ_ICE_MAX_COMP (2<<PJ_ICE_COMP_BITS)
+
+
+/**
+ * The number of bits to represent candidate type preference.
+ */
+#ifndef PJ_ICE_CAND_TYPE_PREF_BITS
+# define PJ_ICE_CAND_TYPE_PREF_BITS 2
+#endif
+
+
+/**
+ * The number of bits to represent ICE candidate's local preference. The
+ * local preference is used to specify preference among candidates with
+ * the same type, and ICE draft suggests 65535 as the default local
+ * preference, which means we need 16 bits to represent the value. But
+ * since we don't have the facility to specify local preference, we'll
+ * just disable this feature and let the preference sorted by the
+ * type only.
*
- * Default: 8
+ * Default: 0
*/
-#ifndef PJ_ICE_MAX_COMP
-# define PJ_ICE_MAX_COMP 8
+#ifndef PJ_ICE_LOCAL_PREF_BITS
+# define PJ_ICE_LOCAL_PREF_BITS 0
#endif