diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-05 13:24:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-05 13:24:12 +0000 |
commit | b741bc6c3692b4269efce961bbf3b378850e9990 (patch) | |
tree | c12b9f947056b059e437766683808e517ac5e919 /res/res_agi.c | |
parent | dd4ab250b11a8ce6f0a9dde77ce103698548d41f (diff) |
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/trunk@112972 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-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 72b975adb..49aa2cfd5 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); |