From: George Joseph Date: Wed, 20 Feb 2019 18:48:25 +0000 (-0700) Subject: Core: Increase AST_PBX_MAX_STACK to 512 if not LOW_MEMORY X-Git-Tag: 17.0.0-rc1~175^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc8dead6104f3faf59ab8575cfa2553702109836;p=thirdparty%2Fasterisk.git Core: Increase AST_PBX_MAX_STACK to 512 if not LOW_MEMORY The current settings AST_PBX_MAX_STACK is 128 entries which is too low for some FreePBX installations with complex parking arrangements. Increased to 512 if LOW_MEMORY is not defined. ASTERISK-28300 Change-Id: I7c4b540bc92e6642df0f3da639b003f7da8b1299 --- diff --git a/include/asterisk/extconf.h b/include/asterisk/extconf.h index 1a04b01bfb..043d24532f 100644 --- a/include/asterisk/extconf.h +++ b/include/asterisk/extconf.h @@ -220,7 +220,11 @@ enum ext_match_t { E_SPAWN = 0x12, /* want to spawn an extension. Requires exact match */ E_FINDLABEL = 0x22 /* returns the priority for a given label. Requires exact match */ }; +#ifdef LOW_MEMORY #define AST_PBX_MAX_STACK 128 +#else +#define AST_PBX_MAX_STACK 512 +#endif /* request and result for pbx_find_extension */ struct pbx_find_info { diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index a40c6a45b0..cbc5ec2320 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -1602,7 +1602,12 @@ enum ext_match_t { #define STATUS_NO_PRIORITY 3 #define STATUS_NO_LABEL 4 #define STATUS_SUCCESS 5 + +#ifdef LOW_MEMORY #define AST_PBX_MAX_STACK 128 +#else +#define AST_PBX_MAX_STACK 512 +#endif /* request and result for pbx_find_extension */ struct pbx_find_info {