diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-25 20:54:38 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-25 20:54:38 +0000 |
commit | e9cbd422c746adbe5cadc959329000feb8aec368 (patch) | |
tree | ce92565ca1f4bce7249cffe0ba643a64f4952506 /channels | |
parent | c10dfef9d51cce12bae1d00107f2b6a5b4bbbaf8 (diff) |
Add ss7 show linkset command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48010 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 3daa77fa2..880a22224 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -11556,7 +11556,6 @@ static int handle_ss7_unblock_cic(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -#if 0 static int handle_ss7_show_linkset(int fd, int argc, char *argv[]) { int linkset; @@ -11573,13 +11572,12 @@ static int handle_ss7_show_linkset(int fd, int argc, char *argv[]) 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 @@ static const char ss7_unblock_cic_help[] = "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 @@ static struct ast_cli_entry zap_ss7_cli[] = { "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 */ |