summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-12 14:34:15 +0000
committerMark Spencer <markster@digium.com>2004-06-12 14:34:15 +0000
commita3355d9fe2802e19d867043397b371ade29134be (patch)
treef44e9b04b8c1ffabd982d1cc5e6972e609fe14b3 /pbx.c
parentc359ec8f5c1b0ae68729c95bd0e691f7f2219c60 (diff)
Add "LOW_MEMORY" option and increase some buffer sizes (bug #1827)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 02c006b69..2c79751bb 100755
--- a/pbx.c
+++ b/pbx.c
@@ -49,6 +49,11 @@
*
*/
+#ifdef LOW_MEMORY
+#define EXT_DATA_SIZE 256
+#else
+#define EXT_DATA_SIZE 8192
+#endif
struct ast_context;
@@ -1159,11 +1164,11 @@ static int pbx_extension_helper(struct ast_channel *c, char *context, char *exte
int res;
int status = 0;
char *incstack[AST_PBX_MAX_STACK];
- char passdata[256];
+ char passdata[EXT_DATA_SIZE];
int stacklen = 0;
char tmp[80];
char tmp2[80];
- char tmp3[256];
+ char tmp3[EXT_DATA_SIZE];
if (ast_mutex_lock(&conlock)) {
ast_log(LOG_WARNING, "Unable to obtain lock\n");
if ((action == HELPER_EXISTS) || (action == HELPER_CANMATCH) || (action == HELPER_MATCHMORE))