[asterisk-commits] jpeeler: branch jpeeler/chan_dahdi14 r119836 - /team/jpeeler/chan_dahdi14/cha...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 2 13:49:29 CDT 2008


Author: jpeeler
Date: Mon Jun  2 13:49:28 2008
New Revision: 119836

URL: http://svn.digium.com/view/asterisk?view=rev&rev=119836
Log:
create chan_dahdi from chan_zap and deprecate zap cli commands

Added:
    team/jpeeler/chan_dahdi14/channels/chan_dahdi.c
      - copied, changed from r119797, team/jpeeler/chan_dahdi14/channels/chan_zap.c
Removed:
    team/jpeeler/chan_dahdi14/channels/chan_zap.c

Copied: team/jpeeler/chan_dahdi14/channels/chan_dahdi.c (from r119797, team/jpeeler/chan_dahdi14/channels/chan_zap.c)
URL: http://svn.digium.com/view/asterisk/team/jpeeler/chan_dahdi14/channels/chan_dahdi.c?view=diff&rev=119836&p1=team/jpeeler/chan_dahdi14/channels/chan_zap.c&r1=119797&p2=team/jpeeler/chan_dahdi14/channels/chan_dahdi.c&r2=119836
==============================================================================
--- team/jpeeler/chan_dahdi14/channels/chan_zap.c (original)
+++ team/jpeeler/chan_dahdi14/channels/chan_dahdi.c Mon Jun  2 13:49:28 2008
@@ -10217,30 +10217,60 @@
 	"	Note that this will STOP any running CALL on DAHDI channels.\n"
 	"";
 
+static struct ast_cli_entry cli_zap_show_cadences_deprecated = {
+	{ "zap", "show", "cadences", NULL },
+	handle_dahdi_show_cadences, NULL,
+	NULL };
+
+static struct ast_cli_entry cli_zap_show_channels_deprecated = {
+	{ "zap", "show", "channels", NULL },
+	dahdi_show_channels, NULL,
+	NULL };
+
+static struct ast_cli_entry cli_zap_show_channel_deprecated = {
+	{ "zap", "show", "channel", NULL },
+	dahdi_show_channel, NULL,
+	NULL };
+
+static struct ast_cli_entry cli_zap_destroy_channel_deprecated = {
+	{ "zap", "destroy", "channel", NULL },
+	dahdi_destroy_channel, NULL,
+	NULL };
+
+static struct ast_cli_entry cli_zap_restart_deprecated = {
+	{ "zap", "restart", NULL },
+	dahdi_restart_cmd, NULL,
+	NULL };
+
+static struct ast_cli_entry cli_zap_show_status_deprecated = {
+	{ "zap", "show", "status", NULL },
+	dahdi_show_status, NULL,
+	NULL };
+
 static struct ast_cli_entry dahdi_cli[] = {
 	{ { "dahdi", "show", "cadences", NULL },
 	handle_dahdi_show_cadences, "List cadences",
-	dahdi_show_cadences_usage },
+	dahdi_show_cadences_usage, NULL, &cli_zap_show_cadences_deprecated },
 
 	{ { "dahdi", "show", "channels", NULL},
 	dahdi_show_channels, "Show active DAHDI channels",
-	show_channels_usage },
+	show_channels_usage, NULL, &cli_zap_show_channels_deprecated },
 
 	{ { "dahdi", "show", "channel", NULL},
 	dahdi_show_channel, "Show information on a channel",
-	show_channel_usage },
+	show_channel_usage, NULL, &cli_zap_show_channel_deprecated },
 
 	{ { "dahdi", "destroy", "channel", NULL},
 	dahdi_destroy_channel, "Destroy a channel",
-	destroy_channel_usage },
+	destroy_channel_usage, NULL, &cli_zap_destroy_channel_deprecated },
 
 	{ { "dahdi", "restart", NULL},
 	dahdi_restart_cmd, "Fully restart DAHDI channels",
-	dahdi_restart_usage },
+	dahdi_restart_usage, NULL &cli_zap_restart_deprecated },
 
 	{ { "dahdi", "show", "status", NULL},
 	dahdi_show_status, "Show all DAHDI cards status",
-	dahdi_show_status_usage },
+	dahdi_show_status_usage, NULL, &cli_zap_show_status_deprecated },
 };
 
 #define TRANSFER	0
@@ -11569,7 +11599,7 @@
  * AST_MODULE_INFO(, , "DAHDI Telephony"
  */
 
-#ifdef DAHDIATA_PRI
+#ifdef DAHDI_PRI
 #define tdesc "DAHDI Telephony w/PRI"
 #else
 #define tdesc "DAHDI Telephony"




More information about the asterisk-commits mailing list