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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-26T12:57:12+01:00

kamcmd: example in hel message for jsonrpc

---

Modified: utils/kamcmd/kamcmd.c

---

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

---

diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c
index 99e2fa08e24..2d437f7a14d 100644
--- a/utils/kamcmd/kamcmd.c
+++ b/utils/kamcmd/kamcmd.c
@@ -90,7 +90,8 @@ static char compiled[] = VERSION_DATE;
 static char compiled[] = __TIME__ " " __DATE__;
 #endif
 #endif
-static char help_msg[] = "\
+static char help_msg[] =
+               "\
 Usage: " NAME " [options][-s address] [ cmd ]\n\
 Options:\n\
     -s address  unix socket name or host name to send the commands on\n\
@@ -115,11 +116,13 @@ arg:\n\
      string or number; to force a number to be interpreted as string \n\
      prefix it by \"s:\", e.g. s:1\n\
 Examples:\n\
-        " NAME " -s unixs:/tmp/" NAME "_ctl system.listMethods\n\
-        " NAME " -f \"pid: %v  desc: %v\\n\" -s udp:localhost:2047 core.ps \n\
-        " NAME " ps  # uses default ctl socket \n\
-        " NAME "     # enters interactive mode on the default socket \n\
-        " NAME " -s tcp:localhost # interactive mode, default port \n\
+    " NAME " -s unixs:/tmp/" NAME "_ctl system.listMethods\n\
+    " NAME " -f \"pid: %v  desc: %v\\n\" -s udp:localhost:2047 core.ps \n\
+    " NAME " ps  # uses default ctl socket \n\
+    " NAME "     # enters interactive mode on the default socket \n\
+    " NAME " -s tcp:localhost # interactive mode, default port \n\
+    " NAME
+               " -s unixd:/run/kamailio/kamailio_rpc.sock -j core.psx # 
jsonrpc mode\n\
 ";
 
 

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to