Merged revisions 134556 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 30 Jul 2008 21:05:37 +0000 (21:05 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 30 Jul 2008 21:05:37 +0000 (21:05 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
r134556 | mmichelson | 2008-07-30 15:24:40 -0500 (Wed, 30 Jul 2008) | 7 lines

Fix the parsing of the "reason" parameter in the
Diversion: header.

(closes issue #13195)
Reported by: woodsfsg

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134598 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 7bdb7d0..182f485 100644 (file)
@@ -5768,7 +5768,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
                        /* List Queue Members */
                        mem_iter = ao2_iterator_init(q->members, 0);
                        while ((mem = ao2_iterator_next(&mem_iter))) {
                        /* List Queue Members */
                        mem_iter = ao2_iterator_init(q->members, 0);
                        while ((mem = ao2_iterator_next(&mem_iter))) {
-                               if (ast_strlen_zero(memberfilter) || !strcmp(mem->interface, memberfilter)) {
+                               if (ast_strlen_zero(memberfilter) || !strcmp(mem->interface, memberfilter) || !strcmp(mem->membername, memberfilter)) {
                                        astman_append(s, "Event: QueueMember\r\n"
                                                "Queue: %s\r\n"
                                                "Name: %s\r\n"
                                        astman_append(s, "Event: QueueMember\r\n"
                                                "Queue: %s\r\n"
                                                "Name: %s\r\n"