summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-07-14 16:17:16 +0000
committerMark Spencer <markster@digium.com>2003-07-14 16:17:16 +0000
commit529b08c3a355748fd1f192a8210bc826e1fc6395 (patch)
tree0d2bb4c359b40754fb02f83a2eeca79a8e530340 /apps
parentfb1aeaa66cbff159af225031ae00486e1f0cf718 (diff)
Fix minor AGI buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_agi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index f03b8e9c0..7c7b653f2 100755
--- a/apps/app_agi.c
+++ b/apps/app_agi.c
@@ -402,6 +402,8 @@ static int handle_getdata(struct ast_channel *chan, AGI *agi, int argc, char *ar
return RESULT_SUCCESS;
else if (res == 1)
fdprintf(agi->fd, "200 result=%s (timeout)\n", data);
+ else if (res < 0 )
+ fdprintf(agi->fd, "200 result=-1\n");
else
fdprintf(agi->fd, "200 result=%s\n", data);
if (res >= 0)