|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
/*
|
|
|
|
|
* Asterisk -- An open source telephony toolkit.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 1999 - 2006, Digium, Inc.
|
|
|
|
|
* Copyright (C) 1999 - 2015, Digium, Inc.
|
|
|
|
|
*
|
|
|
|
|
* Mark Spencer <markster@digium.com>
|
|
|
|
|
*
|
|
|
|
@ -9250,10 +9250,20 @@ static char *__queues_show(struct mansession *s, int fd, int argc, const char *
|
|
|
|
|
|
|
|
|
|
ast_str_append(&out, 0, " (ringinuse %s)", mem->ringinuse ? "enabled" : "disabled");
|
|
|
|
|
|
|
|
|
|
ast_str_append(&out, 0, "%s%s%s%s%s%s%s%s%s (%s%s%s)",
|
|
|
|
|
ast_str_append(&out, 0, "%s%s%s%s%s%s",
|
|
|
|
|
mem->dynamic ? ast_term_color(COLOR_CYAN, COLOR_BLACK) : "", mem->dynamic ? " (dynamic)" : "", ast_term_reset(),
|
|
|
|
|
mem->realtime ? ast_term_color(COLOR_MAGENTA, COLOR_BLACK) : "", mem->realtime ? " (realtime)" : "", ast_term_reset(),
|
|
|
|
|
mem->paused ? ast_term_color(COLOR_BROWN, COLOR_BLACK) : "", mem->paused ? " (paused)" : "", ast_term_reset(),
|
|
|
|
|
mem->realtime ? ast_term_color(COLOR_MAGENTA, COLOR_BLACK) : "", mem->realtime ? " (realtime)" : "", ast_term_reset());
|
|
|
|
|
if (mem->paused) {
|
|
|
|
|
if (ast_strlen_zero(mem->reason_paused)) {
|
|
|
|
|
ast_str_append(&out, 0, " %s(paused)%s",
|
|
|
|
|
ast_term_color(COLOR_BROWN, COLOR_BLACK), ast_term_reset());
|
|
|
|
|
} else {
|
|
|
|
|
ast_str_append(&out, 0, " %s(paused:%s)%s", ast_term_color(COLOR_BROWN, COLOR_BLACK),
|
|
|
|
|
mem->reason_paused, ast_term_reset());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ast_str_append(&out, 0, " (%s%s%s)",
|
|
|
|
|
ast_term_color(
|
|
|
|
|
mem->status == AST_DEVICE_UNAVAILABLE || mem->status == AST_DEVICE_UNKNOWN ?
|
|
|
|
|
COLOR_RED : COLOR_GREEN, COLOR_BLACK),
|
|
|
|
|