[asterisk-commits] tilghman: trunk r156647 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 13 13:10:28 CST 2008


Author: tilghman
Date: Thu Nov 13 13:10:28 2008
New Revision: 156647

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156647
Log:
Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'.

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=156647&r1=156646&r2=156647
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Nov 13 13:10:28 2008
@@ -11806,12 +11806,12 @@
 		return CLI_SHOWUSAGE;
 	}
 
-	if (!strcasecmp(a->argv[4], "on")) {
+	if (!strcasecmp(a->argv[3], "on")) {
 		level = 1;
-	} else if (!strcasecmp(a->argv[4], "off")) {
+	} else if (!strcasecmp(a->argv[3], "off")) {
 		level = 0;
 	} else {
-		level = atoi(a->argv[4]);
+		level = atoi(a->argv[3]);
 	}
 	span = atoi(a->argv[5]);
 	if ((span < 1) || (span > NUM_SPANS)) {




More information about the asterisk-commits mailing list