mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Merge "Core: Increase AST_PBX_MAX_STACK to 512 if not LOW_MEMORY"
This commit is contained in:
@@ -220,7 +220,11 @@ enum ext_match_t {
|
|||||||
E_SPAWN = 0x12, /* want to spawn an extension. Requires exact match */
|
E_SPAWN = 0x12, /* want to spawn an extension. Requires exact match */
|
||||||
E_FINDLABEL = 0x22 /* returns the priority for a given label. 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
|
#define AST_PBX_MAX_STACK 128
|
||||||
|
#else
|
||||||
|
#define AST_PBX_MAX_STACK 512
|
||||||
|
#endif
|
||||||
|
|
||||||
/* request and result for pbx_find_extension */
|
/* request and result for pbx_find_extension */
|
||||||
struct pbx_find_info {
|
struct pbx_find_info {
|
||||||
|
@@ -1602,7 +1602,12 @@ enum ext_match_t {
|
|||||||
#define STATUS_NO_PRIORITY 3
|
#define STATUS_NO_PRIORITY 3
|
||||||
#define STATUS_NO_LABEL 4
|
#define STATUS_NO_LABEL 4
|
||||||
#define STATUS_SUCCESS 5
|
#define STATUS_SUCCESS 5
|
||||||
|
|
||||||
|
#ifdef LOW_MEMORY
|
||||||
#define AST_PBX_MAX_STACK 128
|
#define AST_PBX_MAX_STACK 128
|
||||||
|
#else
|
||||||
|
#define AST_PBX_MAX_STACK 512
|
||||||
|
#endif
|
||||||
|
|
||||||
/* request and result for pbx_find_extension */
|
/* request and result for pbx_find_extension */
|
||||||
struct pbx_find_info {
|
struct pbx_find_info {
|
||||||
|
Reference in New Issue
Block a user