[svn-commits] gtjoseph: branch 12 r408522 - in /branches/12/res: ./ res_pjsip/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Feb 20 15:09:49 CST 2014


Author: gtjoseph
Date: Thu Feb 20 15:09:47 2014
New Revision: 408522

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=408522
Log:
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/


Modified:
    branches/12/res/res_pjsip/location.c
    branches/12/res/res_pjsip_outbound_registration.c

Modified: branches/12/res/res_pjsip/location.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/location.c?view=diff&rev=408522&r1=408521&r2=408522
==============================================================================
--- branches/12/res/res_pjsip/location.c (original)
+++ branches/12/res/res_pjsip/location.c Thu Feb 20 15:09:47 2014
@@ -649,6 +649,10 @@
 		.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 */

Modified: branches/12/res/res_pjsip_outbound_registration.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_outbound_registration.c?view=diff&rev=408522&r1=408521&r2=408522
==============================================================================
--- branches/12/res/res_pjsip_outbound_registration.c (original)
+++ branches/12/res/res_pjsip_outbound_registration.c Thu Feb 20 15:09:47 2014
@@ -1214,6 +1214,10 @@
 		.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"




More information about the svn-commits mailing list