diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-14 16:17:16 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-14 16:17:16 +0000 |
commit | 3d14d777106c47ed160f33e0d3276b4e3780888b (patch) | |
tree | 0d2bb4c359b40754fb02f83a2eeca79a8e530340 /apps/app_agi.c | |
parent | 06ac08020568b73a4c3714d2e2f28550664321fd (diff) |
Fix minor AGI buglet
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1185 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-x | apps/app_agi.c | 2 |
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) |