summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-14 06:00:11 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-14 06:00:11 +0000
commit06fde4bfafaff33006359fb9e0ea965b0236e7af (patch)
tree4d5b29650be4cacf2c29710581941f0e84cfd431 /apps
parent52a7b81e248f05d6c1e87d2d9260f04632e3b3d7 (diff)
Fri Feb 14 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_agi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index 91ca9749f..e7bccedf6 100755
--- a/apps/app_agi.c
+++ b/apps/app_agi.c
@@ -352,14 +352,14 @@ int ast_app_getdata(struct ast_channel *c, char *prompt, char *s, int maxlen, in
static int handle_getdata(struct ast_channel *chan, int fd, int argc, char *argv[])
{
int res;
- char data[50];
+ char data[1024];
int max;
int timeout;
if (argc < 3)
return RESULT_SHOWUSAGE;
if (argc >= 4) timeout = atoi(argv[3]); else timeout = 0;
- if (argc >= 5) max = atoi(argv[4]); else max = 50;
+ if (argc >= 5) max = atoi(argv[4]); else max = 1024;
res = ast_app_getdata(chan, argv[2], data, max, timeout);
if (res == 1)
fdprintf(fd, "200 result=%s (timeout)\n", data);