summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2014-02-20 21:12:02 +0000
committerGeorge Joseph <george.joseph@fairview5.com>2014-02-20 21:12:02 +0000
commit39a450d9242ad6797706200a61214bba8be1ffb1 (patch)
tree7cd3e474f01e30170893ef24a8b1affbfbb49545
parent31a18c14b8cbb2e84a4d5093fd681e14fdf9ee23 (diff)
pjsip_cli: Add pjsip commands 'show registrations' and 'show contacts'.
Added 'show registrations' and 'show contacts' to pjsip cli to make things a little more consistent. The output is exactly the same as the list command. Just needed to add entries to their respective ast_cli_entry structures. (closes issue ASTERISK-23275) Review: http://reviewboard.asterisk.org/r/3210/ ........ Merged revisions 408522 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--res/res_pjsip/location.c4
-rw-r--r--res/res_pjsip_outbound_registration.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c
index 882628669..6c77beefe 100644
--- a/res/res_pjsip/location.c
+++ b/res/res_pjsip/location.c
@@ -649,6 +649,10 @@ static struct ast_cli_entry cli_commands[] = {
.command = "pjsip list contacts",
.usage = "Usage: pjsip list contacts\n"
" List the configured PJSIP contacts\n"),
+ AST_CLI_DEFINE(ast_sip_cli_traverse_objects, "Show PJSIP Contacts",
+ .command = "pjsip show contacts",
+ .usage = "Usage: pjsip show contacts\n"
+ " Show the configured PJSIP contacts\n"),
};
/*! \brief Initialize sorcery with location support */
diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c
index c97fb750c..0ef950711 100644
--- a/res/res_pjsip_outbound_registration.c
+++ b/res/res_pjsip_outbound_registration.c
@@ -1211,6 +1211,10 @@ static struct ast_cli_entry cli_outbound_registration[] = {
.command = "pjsip list registrations",
.usage = "Usage: pjsip list registrations\n"
" List the configured PJSIP Registrations\n"),
+ AST_CLI_DEFINE(my_cli_traverse_objects, "Show PJSIP Registrations",
+ .command = "pjsip show registrations",
+ .usage = "Usage: pjsip show registrations\n"
+ " Show the configured PJSIP Registrations\n"),
AST_CLI_DEFINE(my_cli_traverse_objects, "Show PJSIP Registration",
.command = "pjsip show registration",
.usage = "Usage: pjsip show registration <id>\n"