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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 22 15:05:14 CDT 2008


Author: mmichelson
Date: Wed Oct 22 15:05:14 2008
New Revision: 151600

URL: http://svn.digium.com/view/asterisk?view=rev&rev=151600
Log:
Change some logical ands to bitwise ands and add
messages alerting that a channel is being ignored
if the PROC_DAHDI_NOCHAN option is set in process_dahdi.

(closes issue #13759)
Reported by: smurfix
Patches:
      dahdi.patch uploaded by smurfix (license 547)


Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=151600&r1=151599&r2=151600
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Wed Oct 22 15:05:14 2008
@@ -13741,11 +13741,14 @@
 #endif			
 			) {
  			int iscrv;
- 			if (options && PROC_DAHDI_OPT_NOCHAN)
+ 			if (options & PROC_DAHDI_OPT_NOCHAN) {
+				ast_log(LOG_WARNING, "Channel '%s' ignored.\n", v->value);
  				continue;
+			}
  			iscrv = !strcasecmp(v->name, "crv");
  			if (build_channels(confp, iscrv, v->value, reload, v->lineno, &found_pseudo))
  					return -1;
+			ast_log(LOG_DEBUG, "Channel '%s' configured.\n", v->value);
 		} else if (!strcasecmp(v->name, "buffers")) {
 			int res;
 			char policy[21] = "";
@@ -14525,7 +14528,7 @@
 			} else if (!strcasecmp(v->name, "mwilevel")) {
 				mwilevel = atoi(v->value);
 			}
-		} else if (!(options && PROC_DAHDI_OPT_NOWARN) )
+		} else if (!(options & PROC_DAHDI_OPT_NOWARN) )
 			ast_log(LOG_WARNING, "Ignoring %s at line %d.\n", v->name, v->lineno);
 	}
 	if (dahdichan[0]) { 




More information about the asterisk-commits mailing list