From: George Joseph Date: Thu, 20 Feb 2014 21:09:47 +0000 (+0000) Subject: pjsip_cli: Add pjsip commands 'show registrations' and 'show contacts'. X-Git-Tag: 12.2.0-rc1~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db64b734c1e18c21f972602852302dc761f43b06;p=thirdparty%2Fasterisk.git 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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@408522 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c index 8826286690..6c77beefe7 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 9fc91bdfc3..f1bcde44ea 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -1214,6 +1214,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 \n"