[asterisk-commits] mattf: trunk r48010 - /trunk/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Nov 25 13:54:39 MST 2006
Author: mattf
Date: Sat Nov 25 14:54:38 2006
New Revision: 48010
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48010
Log:
Add ss7 show linkset command
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=48010&r1=48009&r2=48010
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sat Nov 25 14:54:38 2006
@@ -11556,7 +11556,6 @@
return RESULT_SUCCESS;
}
-#if 0
static int handle_ss7_show_linkset(int fd, int argc, char *argv[])
{
int linkset;
@@ -11573,13 +11572,12 @@
return RESULT_SUCCESS;
}
if (linksets[linkset-1].ss7)
- ss7 = linksets[linkset-1];
+ ss7 = &linksets[linkset-1];
ast_cli(fd, "SS7 linkset %d status: %s\n", linkset, (ss7->state == LINKSET_STATE_UP) ? "Up" : "Down");
return RESULT_SUCCESS;
}
-#endif
static const char ss7_debug_help[] =
"Usage: ss7 debug linkset <linkset>\n"
@@ -11597,11 +11595,9 @@
"Usage: ss7 unblock cic <linkset> <CIC>\n"
" Sends a remote unblocking request for the given CIC on the specified linkset\n";
-#if 0
static const char ss7_show_linkset_help[] =
"Usage: ss7 show linkset <span>\n"
" Shows the status of an SS7 linkset.\n";
-#endif
static struct ast_cli_entry zap_ss7_cli[] = {
{ { "ss7", "debug", "linkset", NULL }, handle_ss7_debug,
@@ -11612,10 +11608,8 @@
"Disables SS7 debugging on a linkset", ss7_block_cic_help, NULL },
{ { "ss7", "unblock", "cic", NULL }, handle_ss7_unblock_cic,
"Disables SS7 debugging on a linkset", ss7_unblock_cic_help, NULL },
-#if 0
{ { "ss7", "show", "linkset", NULL }, handle_ss7_show_linkset,
"Shows the status of a linkset", ss7_show_linkset_help, NULL },
-#endif
};
#endif /* HAVE_SS7 */
More information about the asterisk-commits
mailing list