Hello,
kamcli (kamailio command line interface tool written in python) got a
consistent set of features trying to become in pair with kamctl. It is
currently hosted by asipto organization on github, but I am considering
to transfer (move) it to kamailio organization in order to manage easier
the access for kamailio devs as well as increase its exposure to community.
It interacts with kamailio using rpc commands via jsonrpcs module.
You can read more about what it can do at:
- https://github.com/asipto/kamcli
The commands are implemented in a plugin-like fashion -- see the ones
done so far:
- https://github.com/asipto/kamcli/tree/master/kamcli/commands
Given that it can handle better the jsonrpc responses, provides more
options to format the output and the help is embedded in each command, I
think it is a good candidate to replace the old shell(bash)-based kamctl.
Probably we can adjust kamctl for rpc when mi code will be removed, but
the options to build and extend in long term a good cli for kamailio are
quite limited in shell.
For the sake of an example, here is the implementation of 'ps' command,
handling the json rpc to display a very compact list of kamailio processes:
- https://github.com/asipto/kamcli/blob/master/kamcli/commands/cmd_ps.py
Dealing with database records is also rather trivial:
-
https://github.com/asipto/kamcli/blob/master/kamcli/commands/cmd_group.py
Anyone with comments/suggestions/alternatives?
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
Module: kamailio
Branch: master
Commit: 880627e5afa47880b69d7d63168465ce5e783ee8
URL: https://github.com/kamailio/kamailio/commit/880627e5afa47880b69d7d63168465c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-12-15T13:04:05+01:00
pkg/kamailio/deb: version set to 5.0.0-dev9
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/squeeze/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
Modified: pkg/kamailio/deb/xenial/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/880627e5afa47880b69d7d63168465c…
Patch: https://github.com/kamailio/kamailio/commit/880627e5afa47880b69d7d63168465c…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8
diff --git a/pkg/kamailio/deb/xenial/changelog b/pkg/kamailio/deb/xenial/changelog
index dabbb4b..f150ede 100644
--- a/pkg/kamailio/deb/xenial/changelog
+++ b/pkg/kamailio/deb/xenial/changelog
@@ -1,3 +1,9 @@
+kamailio (5.0.0~dev9) unstable; urgency=medium
+
+ * version set to 5.0.0-dev9
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 15 Dec 2016 13:03:24 +0100
+
kamailio (5.0.0~dev8) unstable; urgency=medium
* version set to 5.0.0-dev8