diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-05 13:52:07 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-05 13:52:07 +0000 |
commit | 03275acea2a3e04f0b409b3bfe9aacb9c163fa56 (patch) | |
tree | 8350372fca86e029fcf4c8adbbf46475ea6bd4e9 /channels/chan_dahdi.c | |
parent | 84eb8368e2b857a30fff2a943d820b0c347a48fc (diff) |
Merged revisions 199227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r199227 | mmichelson | 2009-06-05 08:51:08 -0500 (Fri, 05 Jun 2009) | 14 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@199230 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 78de3620e..e96740120 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -14434,7 +14434,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; } |