[asterisk-commits] tilghman: branch 1.6.2 r192173 - in /branches/1.6.2: ./ configure res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon May 4 14:31:37 CDT 2009
Author: tilghman
Date: Mon May 4 14:31:33 2009
New Revision: 192173
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192173
Log:
Merged revisions 192171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r192171 | tilghman | 2009-05-04 14:29:13 -0500 (Mon, 04 May 2009) | 8 lines
Restore 'asyncagi break' command to 1.6.1 and higher.
(closes issue #14985)
Reported by: nikkk
Patches:
20090428__bug14985.diff.txt uploaded by tilghman (license 14)
20090429__bug14985__1.6.1.diff.txt uploaded by tilghman (license 14)
Tested by: nikkk
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/configure
branches/1.6.2/res/res_agi.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/res/res_agi.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/res/res_agi.c?view=diff&rev=192173&r1=192172&r2=192173
==============================================================================
--- branches/1.6.2/res/res_agi.c (original)
+++ branches/1.6.2/res/res_agi.c Mon May 4 14:31:33 2009
@@ -73,6 +73,19 @@
<description>
<para>Answers channel if not already in answer state. Returns <literal>-1</literal> on
channel failure, or <literal>0</literal> if successful.</para>
+ </description>
+ <see-also>
+ <ref type="agi">hangup</ref>
+ </see-also>
+ </agi>
+ <agi name="asyncagi break" language="en_US">
+ <synopsis>
+ Interrupts Async AGI
+ </synopsis>
+ <syntax />
+ <description>
+ <para>Interrupts expected flow of Async AGI commands and returns control to previous source
+ (typically, the PBX dialplan).</para>
</description>
<see-also>
<ref type="agi">hangup</ref>
@@ -1018,6 +1031,12 @@
return (res >= 0) ? RESULT_SUCCESS : RESULT_FAILURE;
}
+static int handle_asyncagi_break(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
+{
+ ast_agi_send(agi->fd, chan, "200 result=0\n");
+ return RESULT_FAILURE;
+}
+
static int handle_waitfordigit(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
{
int res, to;
@@ -2449,6 +2468,7 @@
*/
static struct agi_command commands[] = {
{ { "answer", NULL }, handle_answer, NULL, NULL, 0 },
+ { { "asyncagi", "break", NULL }, handle_asyncagi_break, NULL, NULL, 1 },
{ { "channel", "status", NULL }, handle_channelstatus, NULL, NULL, 0 },
{ { "database", "del", NULL }, handle_dbdel, NULL, NULL, 1 },
{ { "database", "deltree", NULL }, handle_dbdeltree, NULL, NULL, 1 },
More information about the asterisk-commits
mailing list