[asterisk-commits] mjordan: branch mjordan/longcat r378651 - /team/mjordan/longcat/res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 7 11:30:36 CST 2013
Author: mjordan
Date: Mon Jan 7 11:30:32 2013
New Revision: 378651
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378651
Log:
Remove the AGI command
It's not needed now!
Modified:
team/mjordan/longcat/res/res_agi.c
Modified: team/mjordan/longcat/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/longcat/res/res_agi.c?view=diff&rev=378651&r1=378650&r2=378651
==============================================================================
--- team/mjordan/longcat/res/res_agi.c (original)
+++ team/mjordan/longcat/res/res_agi.c Mon Jan 7 11:30:32 2013
@@ -96,33 +96,6 @@
<see-also>
<ref type="agi">hangup</ref>
</see-also>
- </agi>
- <agi name="asyncagi control stream" language="en_US">
- <synopsis>
- Controls a currently streaming file being played to a channel in Async AGI
- </synopsis>
- <syntax>
- <parameter name="operation">
- <para>The operation to perform on the stream.</para>
- <enumlist>
- <enum name="stop">
- <para></para>
- </enum>
- <enum name="forward">
- <para></para>
- </enum>
- <enum name="reverse">
- <para></para>
- </enum>
- <enum name="pause">
- <para></para>
- </enum>
- <enum name="restart">
- <para></para>
- </enum>
- </enumlist>
- </parameter>
- </syntax>
</agi>
<agi name="channel status" language="en_US">
<synopsis>
@@ -1910,35 +1883,6 @@
{
ast_agi_send(agi->fd, chan, "200 result=0\n");
return ASYNC_AGI_BREAK;
-}
-
-static int handle_asyncagi_control_stream(struct ast_channel *chan, AGI *agi, int argc, const char * const argv[])
-{
- if (argc != 4) {
- return RESULT_SHOWUSAGE;
- }
-
- if (!ast_channel_stream(chan)) {
- ast_agi_send(agi->fd, chan, "200 result=0\n");
- return RESULT_FAILURE;
- }
-
- if (!strcmp(argv[3], "stop")) {
- ast_indicate(chan, AST_CONTROL_STREAM_STOP);
- } else if (!strcmp(argv[3], "forward")) {
- ast_indicate(chan, AST_CONTROL_STREAM_FORWARD);
- } else if (!strcmp(argv[3], "reverse")) {
- ast_indicate(chan, AST_CONTROL_STREAM_REVERSE);
- } else if (!strcmp(argv[3], "pause")) {
- ast_indicate(chan, AST_CONTROL_STREAM_SUSPEND);
- } else if (!strcmp(argv[3], "restart")) {
- ast_indicate(chan, AST_CONTROL_STREAM_RESTART);
- } else {
- return RESULT_SHOWUSAGE;
- }
-
- ast_agi_send(agi->fd, chan, "200 result=1\n");
- return RESULT_SUCCESS;
}
static int handle_waitfordigit(struct ast_channel *chan, AGI *agi, int argc, const char * const argv[])
@@ -3246,7 +3190,6 @@
static struct agi_command commands[] = {
{ { "answer", NULL }, handle_answer, NULL, NULL, 0 },
{ { "asyncagi", "break", NULL }, handle_asyncagi_break, NULL, NULL, 1 },
- { { "asyncagi", "control", "stream", NULL }, handle_asyncagi_control_stream, NULL, NULL, 0 },
{ { "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