[asterisk-commits] rmudgett: branch 1.8 r325610 - /branches/1.8/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 29 13:05:20 CDT 2011
Author: rmudgett
Date: Wed Jun 29 13:05:15 2011
New Revision: 325610
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=325610
Log:
Response to QueueRule manager command does not contain ActionID if it was specified.
* Add ActionID support as documented for the QueueRule AMI action.
* Remove documentation for ActionID with the Queues AMI action. The
output does not follow normal AMI response output and there is no place to
put an ActionID header.
(closes issue AST-602)
Reported by: Vlad Povorozniuc
Patches:
jira_ast_602_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Vlad Povorozniuc, rmudgett
Review: https://reviewboard.asterisk.org/r/1295/
JIRA SWP-3575
Modified:
branches/1.8/apps/app_queue.c
Modified: branches/1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_queue.c?view=diff&rev=325610&r1=325609&r2=325610
==============================================================================
--- branches/1.8/apps/app_queue.c (original)
+++ branches/1.8/apps/app_queue.c Wed Jun 29 13:05:15 2011
@@ -680,7 +680,6 @@
Queues.
</synopsis>
<syntax>
- <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
</syntax>
<description>
</description>
@@ -7091,8 +7090,14 @@
static int manager_queue_rule_show(struct mansession *s, const struct message *m)
{
const char *rule = astman_get_header(m, "Rule");
+ const char *id = astman_get_header(m, "ActionID");
struct rule_list *rl_iter;
struct penalty_rule *pr_iter;
+
+ astman_append(s, "Response: Success\r\n");
+ if (!ast_strlen_zero(id)) {
+ astman_append(s, "ActionID: %s\r\n", id);
+ }
AST_LIST_LOCK(&rule_lists);
AST_LIST_TRAVERSE(&rule_lists, rl_iter, list) {
@@ -7107,6 +7112,10 @@
}
AST_LIST_UNLOCK(&rule_lists);
+ /*
+ * Two blank lines instead of one because the Response and
+ * ActionID headers used to not be present.
+ */
astman_append(s, "\r\n\r\n");
return RESULT_SUCCESS;
More information about the asterisk-commits
mailing list