[asterisk-commits] tilghman: trunk r112972 - /trunk/res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Apr 5 08:24:12 CDT 2008
Author: tilghman
Date: Sat Apr 5 08:24:12 2008
New Revision: 112972
URL: http://svn.digium.com/view/asterisk?view=rev&rev=112972
Log:
AsyncAGI should not close the manager session on error.
(closes issue #12370)
Reported by: srt
Patches:
asterisk-12370.diff uploaded by srt (license 378)
Modified:
trunk/res/res_agi.c
Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=112972&r1=112971&r2=112972
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Sat Apr 5 08:24:12 2008
@@ -340,13 +340,13 @@
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);
More information about the asterisk-commits
mailing list