# will be received more reliably
#OPTIONS += -DRADIO_RELAX
+# If you don't have a lot of memory (e.g. embedded Asterisk), uncomment the
+# following to reduce the size of certain static buffers
+#OPTIONS += -DLOW_MEMORY
+
# Optional debugging parameters
DEBUG_THREADS = #-DDEBUG_THREADS #-DDO_CRASH
if((c = strchr(cur,':'))) {
*c = '\0';
- *c++;
+ c++;
arg = c;
}
)
{
char fn[256];
- char buf[512];
+ char buf[8192];
FILE *f;
int lineno=0;
int master=0;
*
*/
+#ifdef LOW_MEMORY
+#define EXT_DATA_SIZE 256
+#else
+#define EXT_DATA_SIZE 8192
+#endif
struct ast_context;
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))