[asterisk-commits] dhubbard: branch group/issue3450 r136637 - /team/group/issue3450/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 7 15:11:09 CDT 2008


Author: dhubbard
Date: Thu Aug  7 15:11:08 2008
New Revision: 136637

URL: http://svn.digium.com/view/asterisk?view=rev&rev=136637
Log:
Remove 'pri service continuity', 'pri service shutdown', and 'pri service loop' CLI operations.
These operations can be added back in subsequent commits to trunk, but I want to get a handle
on the amount of changes in this branch.

Modified:
    team/group/issue3450/channels/chan_dahdi.c

Modified: team/group/issue3450/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/group/issue3450/channels/chan_dahdi.c?view=diff&rev=136637&r1=136636&r2=136637
==============================================================================
--- team/group/issue3450/channels/chan_dahdi.c (original)
+++ team/group/issue3450/channels/chan_dahdi.c Thu Aug  7 15:11:08 2008
@@ -11827,7 +11827,6 @@
 			default:
 				ast_log(LOG_ERROR, "Unsupported changestatus: '%d'\n", changestatus);
 			}
-			ast_log(LOG_NOTICE, "about to call pri_maintenance_service(span: %d, channel: %d)\n", PRI_SPAN(PVT_TO_CHANNEL(tmp)), PVT_TO_CHANNEL(tmp));
 			pri_maintenance_service(tmp->pri->pri, PRI_SPAN(PVT_TO_CHANNEL(tmp)), PVT_TO_CHANNEL(tmp), changestatus);
 			ast_mutex_unlock(lock);
 			return CLI_SUCCESS;
@@ -11848,7 +11847,9 @@
 		e->command = "pri service clear states";
 		e->usage = 
 			"Usage: pri service clear states\n"
-			"	debugging astdb CLI operation\n";
+			"	Clear the AstDB of PRI persistent service-state entries\n"
+			"       NOTE: This will not change the actual PRI service-state, but will only\n"
+			"       clear the database entries.\n";
 		return NULL;
 	case CLI_GENERATE:	
 		return NULL;
@@ -11875,23 +11876,6 @@
 	return handle_pri_service_generic(e, cmd, a, 0);
 }
 
-static char *handle_pri_service_loop_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
-	switch (cmd) {
-	case CLI_INIT:	
-		e->command = "pri service loop channel";
-		e->usage = 
-			"Usage: pri service loop channel <chan num> [<interface id>]\n"
-			"	Send an AT&T / NFAS / CCS ANSI T1.607 maintenance message\n"
-			"	to put a channel into a maintenance loop, with optional interface id\n"
-			"	as agreed upon with remote switch operator\n";
-		return NULL;
-	case CLI_GENERATE:	
-		return NULL;
-	}
-	return handle_pri_service_generic(e, cmd, a, 1);
-}
-
 static char *handle_pri_service_disable_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
 	switch (cmd) {
@@ -11908,42 +11892,6 @@
 	}
 	return handle_pri_service_generic(e, cmd, a, 2);
 }
-
-static char *handle_pri_service_continuity_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
-	switch (cmd) {
-	case CLI_INIT:	
-		e->command = "pri service continuity channel";
-		e->usage = 
-			"Usage: pri service continuity channel <chan num> [<interface id>]\n"
-			"	Send an AT&T / NFAS / CCS ANSI T1.607 maintenance message\n"
-			"	to test channel continuity, with optional interface id\n"
-			"	as agreed upon with remote switch operator\n";
-		return NULL;
-	case CLI_GENERATE:	
-		return NULL;
-	}
-	return handle_pri_service_generic(e, cmd, a, 3);
-}
-
-static char *handle_pri_service_shutdown_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
-{
-	switch (cmd) {
-	case CLI_INIT:	
-		e->command = "pri service shutdown channel";
-		e->usage = 
-			"Usage: pri service shutdown channel <chan num> [<interface id>]\n"
-			"	Send an AT&T / NFAS / CCS ANSI T1.607 maintenance message\n"
-			"	to shutdown a channel, with optional interface id\n"
-			"	as agreed upon with remote switch operator\n";
-		return NULL;
-	case CLI_GENERATE:	
-		return NULL;
-	}
-	return handle_pri_service_generic(e, cmd, a, 4);
-}
-
-
 
 static char *handle_pri_no_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
@@ -12179,9 +12127,6 @@
 	AST_CLI_DEFINE(handle_pri_service_clear_states, "debug for clearing astdb"),
  	AST_CLI_DEFINE(handle_pri_service_enable_channel, "Return a channel to service"),
  	AST_CLI_DEFINE(handle_pri_service_disable_channel, "Remove a channel from service"),
- 	AST_CLI_DEFINE(handle_pri_service_loop_channel, "Put a channel into maintenance loop"),
- 	AST_CLI_DEFINE(handle_pri_service_continuity_channel, "Test channel continuity"),
- 	AST_CLI_DEFINE(handle_pri_service_shutdown_channel, "Shutdown a channel"), 
 	AST_CLI_DEFINE(handle_pri_show_spans, "Displays PRI Information"),
 	AST_CLI_DEFINE(handle_pri_show_span, "Displays PRI Information"),
 	AST_CLI_DEFINE(handle_pri_show_debug, "Displays current PRI debug settings"),




More information about the asterisk-commits mailing list