aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2.h
diff options
context:
space:
mode:
Diffstat (limited to 'channels/iax2.h')
-rw-r--r--channels/iax2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/iax2.h b/channels/iax2.h
index 2b0c8bb99..960dec8bb 100644
--- a/channels/iax2.h
+++ b/channels/iax2.h
@@ -17,7 +17,12 @@
/* Max version of IAX protocol we support */
#define IAX_PROTO_VERSION 2
+/* NOTE: IT IS CRITICAL THAT IAX_MAX_CALLS BE A POWER OF 2. */
+#if defined(LOW_MEMORY)
+#define IAX_MAX_CALLS 2048
+#else
#define IAX_MAX_CALLS 32768
+#endif
#define IAX_FLAG_FULL 0x8000