diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 14:55:16 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-30 14:55:16 +0000 |
commit | 7806f31dab2a91e601c4c9787ea65b9cbf77dc64 (patch) | |
tree | c1a1c02b8135bebae3ac34ecddb7312223cceb63 /channels/iax2.h | |
parent | 691ec0220131b95908310cb44582f93c38fd1a7a (diff) |
Merged revisions 114884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r114884 | kpfleming | 2008-04-30 09:49:51 -0500 (Wed, 30 Apr 2008) | 10 lines
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/branches/1.6.0@114886 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 |