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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 31 15:52:03 CST 2008


Author: mmichelson
Date: Wed Dec 31 15:52:02 2008
New Revision: 167021

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167021
Log:
Change some incorrect syntax for pri set debug and correct
an off-by-one error in ss7 set debug command


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=167021&r1=167020&r2=167021
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Wed Dec 31 15:52:02 2008
@@ -11875,9 +11875,9 @@
 	int level = 0;
 	switch (cmd) {
 	case CLI_INIT:	
-		e->command = "pri set debug [on|off] span";
+		e->command = "pri set debug {on|off} span";
 		e->usage = 
-			"Usage: pri set debug <level|on|off> span <span>\n"
+			"Usage: pri set debug {<level>|on|off} span <span>\n"
 			"       Enables debugging on a given PRI span\n";
 		return NULL;
 	case CLI_GENERATE:	
@@ -13333,7 +13333,7 @@
 		return CLI_SUCCESS;
 	}
 	if (linksets[span-1].ss7) {
-		if (strcasecmp(a->argv[4], "on")) {
+		if (strcasecmp(a->argv[3], "on")) {
 			ss7_set_debug(linksets[span-1].ss7, SS7_DEBUG_MTP2 | SS7_DEBUG_MTP3 | SS7_DEBUG_ISUP);
 			ast_cli(a->fd, "Enabled debugging on linkset %d\n", span);
 		} else {




More information about the asterisk-commits mailing list