[asterisk-commits] tilghman: branch 1.6.0 r112975 - in /branches/1.6.0: ./ res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Apr 5 08:30:55 CDT 2008


Author: tilghman
Date: Sat Apr  5 08:30:54 2008
New Revision: 112975

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112975
Log:
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)

........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/res/res_agi.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/res/res_agi.c?view=diff&rev=112975&r1=112974&r2=112975
==============================================================================
--- branches/1.6.0/res/res_agi.c (original)
+++ branches/1.6.0/res/res_agi.c Sat Apr  5 08:30:54 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