diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-05 22:16:33 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-05 22:16:33 +0000 |
commit | a6d4c512c85a5c5a908521066fe4a7ba772e4aec (patch) | |
tree | ccaced165563a62abe8a3613e25cb0f1abc7295c /utils | |
parent | 5d863dcd8db84fab3df37c0f32fb459fd1b94948 (diff) |
reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49676 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r-- | utils/astman.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/astman.c b/utils/astman.c index 427b581b2..f072dcd57 100644 --- a/utils/astman.c +++ b/utils/astman.c @@ -38,7 +38,6 @@ #include <stdlib.h> #include "asterisk/md5.h" -#include "asterisk/manager.h" #include "asterisk/linkedlists.h" #undef gethostbyname @@ -54,6 +53,13 @@ */ #define _NEWT_CAST (void *) +#define DEFAULT_MANAGER_PORT 5038 + +struct message { + unsigned int hdrcount; + char headers[MAX_HEADERS][MAX_LEN]; +}; + static struct ast_mansession { struct sockaddr_in sin; int fd; |