Skip to content
Snippets Groups Projects
Commit 8079f53c authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

don't hangup the channel when a RECEIVE TEXT command times out (bug #4607)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e67bc60c
Branches
Tags
No related merge requests found
...@@ -413,11 +413,10 @@ static int handle_recvtext(struct ast_channel *chan, AGI *agi, int argc, char *a ...@@ -413,11 +413,10 @@ static int handle_recvtext(struct ast_channel *chan, AGI *agi, int argc, char *a
if (buf) { if (buf) {
fdprintf(agi->fd, "200 result=1 (%s)\n", buf); fdprintf(agi->fd, "200 result=1 (%s)\n", buf);
free(buf); free(buf);
return RESULT_SUCCESS;
} else { } else {
fdprintf(agi->fd, "200 result=-1\n"); 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[]) static int handle_tddmode(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment