diff --git a/apps/app_queue.c b/apps/app_queue.c index b9beafdd54..69bee045c9 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -695,7 +695,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Queues. - @@ -7259,9 +7258,15 @@ static int manager_queues_show(struct mansession *s, const struct message *m) 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) { if (ast_strlen_zero(rule) || !strcasecmp(rule, rl_iter->name)) { @@ -7275,6 +7280,10 @@ static int manager_queue_rule_show(struct mansession *s, const struct message *m } 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;