Merged revisions 125585 via svnmerge from
[asterisk/asterisk.git] / apps / app_queue.c
index 8a95fd9..ea89c06 100644 (file)
@@ -5484,6 +5484,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)",