[Asterisk-code-review] Core: Increase AST PBX MAX STACK to 512 if not LOW MEMORY (asterisk[13])

George Joseph asteriskteam at digium.com
Wed Feb 20 12:51:50 CST 2019


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/11020


Change subject: Core:  Increase AST_PBX_MAX_STACK to 512 if not LOW_MEMORY
......................................................................

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
---
M include/asterisk/extconf.h
M include/asterisk/pbx.h
2 files changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/11020/1

diff --git a/include/asterisk/extconf.h b/include/asterisk/extconf.h
index 1a04b01..043d245 100644
--- a/include/asterisk/extconf.h
+++ b/include/asterisk/extconf.h
@@ -220,7 +220,11 @@
 	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 6dea744..1cb05cf 100644
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -1548,7 +1548,12 @@
 #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 {

-- 
To view, visit https://gerrit.asterisk.org/11020
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c4b540bc92e6642df0f3da639b003f7da8b1299
Gerrit-Change-Number: 11020
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190220/a6e75c35/attachment.html>


More information about the asterisk-code-review mailing list