diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 14:49:51 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 14:49:51 +0000 |
commit | 22feb5bb796f8cee177022d8f56a9617baf748c6 (patch) | |
tree | 3aad26b293d1c3312e7bb8574ff71a69c1629617 /channels/iax2.h | |
parent | b6f5c3e5d6482232883fbf85667e4ff0a214d686 (diff) |
Merged revisions 114880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r114880 | kpfleming | 2008-04-30 09:46:57 -0500 (Wed, 30 Apr 2008) | 2 lines
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/trunk@114884 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2.h')
-rw-r--r-- | channels/iax2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/iax2.h b/channels/iax2.h index b3947fffa..a945afee4 100644 --- a/channels/iax2.h +++ b/channels/iax2.h @@ -26,7 +26,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 |