[sr-dev] git:master:fea4b388: kamctl: added subcommand srv version
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 19 09:52:47 CEST 2019
Module: kamailio
Branch: master
Commit: fea4b3881574c304b7e73aa764cd49b109f24c61
URL: https://github.com/kamailio/kamailio/commit/fea4b3881574c304b7e73aa764cd49b109f24c61
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-06-19T09:51:39+02:00
kamctl: added subcommand srv version
- print the server version using rpc command
---
Modified: utils/kamctl/kamctl
Modified: utils/kamctl/kamctl.base
---
Diff: https://github.com/kamailio/kamailio/commit/fea4b3881574c304b7e73aa764cd49b109f24c61.diff
Patch: https://github.com/kamailio/kamailio/commit/fea4b3881574c304b7e73aa764cd49b109f24c61.patch
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index cc92e0eba6..a6dbd47a2b 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -1791,6 +1791,11 @@ ksr_srv() {
mecho "list server rpc commands"
ctl_cmd_run system.listMethods
;;
+ rpclist)
+ require_ctlengine
+ mecho "list server version"
+ ctl_cmd_run core.version
+ ;;
*)
usage_ksr_srv
exit 1
diff --git a/utils/kamctl/kamctl.base b/utils/kamctl/kamctl.base
index 46494f5a04..d16fa978b8 100644
--- a/utils/kamctl/kamctl.base
+++ b/utils/kamctl/kamctl.base
@@ -553,6 +553,7 @@ cat <<EOF
srv sockets ................... show the list of listen sockets
srv aliases ................... show the list of server aliases
srv rpclist ................... show the list of server rpc commands
+ srv version ................... show the server version
EOF
}
USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ksr_srv"
More information about the sr-dev
mailing list