diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 23:04:12 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 23:04:12 +0000 |
commit | a575964e208ffce175fd928c1727b0ef8ba208a9 (patch) | |
tree | 44a998f5bb9228fc74d582ca90c66cbd17772b4c /apps/app_queue.c | |
parent | 00d75e738b2deee6c823c832c68d6bcaece9a23e (diff) |
Merged revisions 125586 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r125586 | mmichelson | 2008-06-26 18:01:02 -0500 (Thu, 26 Jun 2008) | 19 lines
Merged revisions 125585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r125585 | mmichelson | 2008-06-26 17:52:39 -0500 (Thu, 26 Jun 2008) | 11 lines
Add the interface of a queue member to the output of the "queue show" command
so that it can easily be associated with a queue member's name. This helps
so that the appropriate queue member can be removed or paused since the
interface is required, not the member's name.
(closes issue #12783)
Reported by: davevg
Patches:
app_queue.diff uploaded by davevg (license 209) with small mod from me
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@125588 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 987a7b57f..d4294ebec 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5409,6 +5409,9 @@ static char *__queues_show(struct mansession *s, int fd, int argc, char **argv) mem_iter = ao2_iterator_init(q->members, 0); while ((mem = ao2_iterator_next(&mem_iter))) { ast_str_set(&out, 0, " %s", mem->membername); + if (strcasecmp(mem->membername, mem->interface)) { + ast_build_string(&max, &max_left, " (%s)", mem->interface); + } if (mem->penalty) ast_str_append(&out, 0, " with penalty %d", mem->penalty); ast_str_append(&out, 0, "%s%s%s (%s)", |