diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 22:52:39 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 22:52:39 +0000 |
commit | a3faa441493e15f2b4ed1f9cd3e195e551d9d0d8 (patch) | |
tree | dbbc1f87d1486fc1bcc3426deba5dd209ed488bc /apps | |
parent | 1f1c6b5f1ebaaf5f07403d6e576f3f339e2c556e (diff) |
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.4@125585 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 803287627..587e2585b 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4389,7 +4389,7 @@ static int __queues_show(struct mansession *s, int manager, int fd, int argc, ch struct member *mem; int pos, queue_show; time_t now; - char max_buf[80]; + char max_buf[150]; char *max; size_t max_left; float sl = 0; @@ -4473,6 +4473,9 @@ static int __queues_show(struct mansession *s, int manager, int fd, int argc, ch max_buf[0] = '\0'; max = max_buf; max_left = sizeof(max_buf); + if (strcasecmp(mem->membername, mem->interface)) { + ast_build_string(&max, &max_left, " (%s)", mem->interface); + } if (mem->penalty) ast_build_string(&max, &max_left, " with penalty %d", mem->penalty); if (mem->dynamic) |