summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/asterisk/manager.h2
-rw-r--r--main/manager.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h
index 31f31b7f0..43031d1d6 100644
--- a/include/asterisk/manager.h
+++ b/include/asterisk/manager.h
@@ -305,7 +305,7 @@ void astman_send_ack(struct mansession *s, const struct message *m, char *msg);
* \param s - AMI session control struct.
* \param m - AMI action request that started the list.
* \param msg - Message contents describing the list to follow.
- * \param listflag - Not used. Historically always set to "start".
+ * \param listflag - Should always be set to "start".
*
* \note You need to call astman_send_list_complete_start() and
* astman_send_list_complete_end() to send the AMI list completion event.
diff --git a/main/manager.c b/main/manager.c
index 4410cd7c5..0ed0fef3a 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -2921,7 +2921,7 @@ static void astman_start_ack(struct mansession *s, const struct message *m)
void astman_send_listack(struct mansession *s, const struct message *m, char *msg, char *listflag)
{
- astman_send_response_full(s, m, "Success", msg, "Start");
+ astman_send_response_full(s, m, "Success", msg, listflag);
}
void astman_send_list_complete_start(struct mansession *s, const struct message *m, const char *event_name, int count)
@@ -3366,7 +3366,7 @@ static int action_getconfig(struct mansession *s, const struct message *m)
}
if (!ast_strlen_zero(category) && catcount == 0) { /* TODO: actually, a config with no categories doesn't even get loaded */
- astman_append(s, "Error: No categories found\r\n");
+ astman_append(s, "No categories found\r\n");
}
ast_config_destroy(cfg);
@@ -3404,7 +3404,7 @@ static int action_listcategories(struct mansession *s, const struct message *m)
}
if (catcount == 0) { /* TODO: actually, a config with no categories doesn't even get loaded */
- astman_append(s, "Error: No categories found\r\n");
+ astman_append(s, "Error: no categories found\r\n");
}
ast_config_destroy(cfg);