[sr-dev] git:master:6f401a7a: kamctl: srv modules subcommand

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 8 08:43:42 CET 2021


Module: kamailio
Branch: master
Commit: 6f401a7aab1bc846aaebe50e0f451d7c16e2c55e
URL: https://github.com/kamailio/kamailio/commit/6f401a7aab1bc846aaebe50e0f451d7c16e2c55e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-06T22:11:37+01:00

kamctl: srv modules subcommand

- list the loaded modules

---

Modified: utils/kamctl/kamctl
Modified: utils/kamctl/kamctl.base

---

Diff:  https://github.com/kamailio/kamailio/commit/6f401a7aab1bc846aaebe50e0f451d7c16e2c55e.diff
Patch: https://github.com/kamailio/kamailio/commit/6f401a7aab1bc846aaebe50e0f451d7c16e2c55e.patch

---

diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index a5a1d34714..a83720fcde 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -1799,6 +1799,11 @@ ksr_srv() {
 				ctl_cmd_run corex.debug $2
 			fi
 			;;
+		modules)
+			require_ctlengine
+			mecho "list loaded modules"
+			ctl_cmd_run core.modules
+			;;
 		version)
 			require_ctlengine
 			mecho "list server version"
diff --git a/utils/kamctl/kamctl.base b/utils/kamctl/kamctl.base
index 47747be85a..f3b9e1f667 100644
--- a/utils/kamctl/kamctl.base
+++ b/utils/kamctl/kamctl.base
@@ -556,6 +556,7 @@ cat <<EOF
  srv aliases ................... show the list of server aliases
  srv rpclist ................... show the list of server rpc commands
  srv debug [<level>] ........... control the server debug level
+ srv modules ................... show the list of loaded modules
  srv version ................... show the server version
 EOF
 }




More information about the sr-dev mailing list