[asterisk-commits] mmichelson: trunk r199227 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 5 08:51:13 CDT 2009


Author: mmichelson
Date: Fri Jun  5 08:51:08 2009
New Revision: 199227

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199227
Log:
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


Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=199227&r1=199226&r2=199227
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Jun  5 08:51:08 2009
@@ -16008,7 +16008,7 @@
 		if (filtertype) {
 			switch(filtertype) {
 			case 1: /* dahdi show channels group <group> */
-				if (tmp->group != targetnum) {
+				if (!(tmp->group & targetnum)) {
 					tmp = tmp->next;
 					continue;
 				}




More information about the asterisk-commits mailing list