diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-05 13:30:54 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-05 13:30:54 +0000 |
commit | 5bba7f01c45ffbc6aa852e3d45bf4768ceff6464 (patch) | |
tree | 5758caae8df6e8bee48c4dc2464fc0e9afeac4c5 | |
parent | 8c40a9ad654fc09f33e075bd88afaf44879e3d84 (diff) |
Merged revisions 112972 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r112972 | tilghman | 2008-04-05 08:24:12 -0500 (Sat, 05 Apr 2008) | 6 lines
AsyncAGI should not close the manager session on error.
(closes issue #12370)
Reported by: srt
Patches:
asterisk-12370.diff uploaded by srt (license 378)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@112975 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_agi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 59e79ce6f..93d6684d7 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -340,13 +340,13 @@ static int action_add_agi_cmd(struct mansession *s, const struct message *m) if (!chan) { snprintf(buf, sizeof(buf), "Channel %s does not exists or cannot get its lock", channel); astman_send_error(s, m, buf); - return 1; + return 0; } if (add_agi_cmd(chan, cmdbuff, cmdid)) { snprintf(buf, sizeof(buf), "Failed to add AGI command to channel %s queue", chan->name); astman_send_error(s, m, buf); ast_channel_unlock(chan); - return 1; + return 0; } astman_send_ack(s, m, "Added AGI command to queue"); ast_channel_unlock(chan); |