[asterisk-commits] mmichelson: branch 1.4 r125585 - /branches/1.4/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 26 17:52:40 CDT 2008
Author: mmichelson
Date: Thu Jun 26 17:52:39 2008
New Revision: 125585
URL: http://svn.digium.com/view/asterisk?view=rev&rev=125585
Log:
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
Modified:
branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=125585&r1=125584&r2=125585
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Thu Jun 26 17:52:39 2008
@@ -4389,7 +4389,7 @@
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 @@
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)
More information about the asterisk-commits
mailing list