aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-30 14:46:57 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-30 14:46:57 +0000
commitdfa80fc343e382e99e91304e9a058d582eaa841e (patch)
tree0083ac3ce26ad61b88969395c79383a01775a4ab /channels/iax2.h
parent76feb1001094f013bba719b933b77d12e0b0d5af (diff)
use the ARRAY_LEN macro for indexing through the iaxs/iaxsl arrays so that the size of the arrays can be adjusted in one place, and change the size of the arrays from 32768 calls to 2048 calls when LOW_MEMORY is defined
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114880 f38db490-d61c-443f-a65b-d21fe96a405b
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