[asterisk-commits] mvanbaak: trunk r147853 - /trunk/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 9 12:01:25 CDT 2008


Author: mvanbaak
Date: Thu Oct  9 12:01:24 2008
New Revision: 147853

URL: http://svn.digium.com/view/asterisk?view=rev&rev=147853
Log:
fix some CLI commands we borked during devcon2008
Thanks rmudget for letting me know and providing hints on how to fix it best.

Modified:
    trunk/channels/chan_dahdi.c
    trunk/channels/chan_h323.c
    trunk/channels/chan_misdn.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=147853&r1=147852&r2=147853
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Oct  9 12:01:24 2008
@@ -11654,7 +11654,7 @@
 	int level = 0;
 	switch (cmd) {
 	case CLI_INIT:	
-		e->command = "pri set debug {<level>|on|off} span";
+		e->command = "pri set debug [on|off] span";
 		e->usage = 
 			"Usage: pri set debug <level|on|off> span <span>\n"
 			"       Enables debugging on a given PRI span\n";

Modified: trunk/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_h323.c?view=diff&rev=147853&r1=147852&r2=147853
==============================================================================
--- trunk/channels/chan_h323.c (original)
+++ trunk/channels/chan_h323.c Thu Oct  9 12:01:24 2008
@@ -2633,6 +2633,9 @@
 	if (!strcasecmp(a->argv[3], "off")) {
 		h323_debug(0, 0);
 		ast_cli(a->fd, "H.323 Trace Disabled\n");
+	} else if (!strcasecmp(a->argv[3], "on")) {
+		h323_debug(1, 1);
+		ast_cli(a->fd, "H.323 Trace Enabled\n");
 	} else {
 		int tracelevel = atoi(a->argv[3]);
 		h323_debug(1, tracelevel);

Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=147853&r1=147852&r2=147853
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Thu Oct  9 12:01:24 2008
@@ -737,7 +737,7 @@
 
 	switch (cmd) {
 	case CLI_INIT:
-		e->command = "misdn set debug {on|off|<level>}";
+		e->command = "misdn set debug [on|off]";
 		e->usage =
 			"Usage: misdn set debug {on|off|<level>} [only] | [port <port> [only]]\n"
 			"       Set the debug level of the mISDN channel.\n";




More information about the asterisk-commits mailing list