aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-11 20:40:02 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-11 20:40:02 +0000
commit182bab0dd6186013d5b46654d9146a731140ae88 (patch)
treea05ec25ef0b0ad2d5f6b5dc28b1bda7adad20175 /res
parentb30a8fecdf548b3db709780e4b5dbe4d66b7cb77 (diff)
don't hangup the channel when a RECEIVE TEXT command times out (bug #4607)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6082 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_agi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 611b92cf4..df1d7a6a0 100755
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -413,11 +413,10 @@ static int handle_recvtext(struct ast_channel *chan, AGI *agi, int argc, char *a
if (buf) {
fdprintf(agi->fd, "200 result=1 (%s)\n", buf);
free(buf);
- return RESULT_SUCCESS;
} else {
fdprintf(agi->fd, "200 result=-1\n");
- return RESULT_FAILURE;
}
+ return RESULT_SUCCESS;
}
static int handle_tddmode(struct ast_channel *chan, AGI *agi, int argc, char *argv[])