summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-06-05 13:51:08 +0000
committerMark Michelson <mmichelson@digium.com>2009-06-05 13:51:08 +0000
commitd068c2f5e6ead626883f301c3187d03a93970fa4 (patch)
tree074df490c41a199fae1429791800a5b4fbaf9d7e /channels/chan_dahdi.c
parente018606c7ec90a3e910551e2628042f6a36d209b (diff)
Correct "dahdi show channels" output when specifying a group.
Since a DAHDI channel may belong to multiple groups, we need to use a bitwise and instead of equivalence to determine whether to display the channel information. (closes issue #15248) Reported by: gentian Patches: 15248.patch uploaded by mmichelson (license 60) Tested by: gentian git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@199227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 9e4b48727..a062d38fd 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -16008,7 +16008,7 @@ static char *dahdi_show_channels(struct ast_cli_entry *e, int cmd, struct ast_cl
if (filtertype) {
switch(filtertype) {
case 1: /* dahdi show channels group <group> */
- if (tmp->group != targetnum) {
+ if (!(tmp->group & targetnum)) {
tmp = tmp->next;
continue;
}