Module: kamailio Branch: 5.1 Commit: 0894772cd091820e106421af85f9697a74f9d935 URL: https://github.com/kamailio/kamailio/commit/0894772cd091820e106421af85f9697a...
Author: Henning Westerholt hw@skalatan.de Committer: Henning Westerholt hw@skalatan.de Date: 2019-07-30T16:39:07+02:00
utils/kamcmd: default port is 2049, adapt help and README
(cherry picked from commit 74375eae8f447952d17a1d89e5a62f029a15a81c)
---
Modified: utils/kamcmd/README Modified: utils/kamcmd/kamcmd.c
---
Diff: https://github.com/kamailio/kamailio/commit/0894772cd091820e106421af85f9697a... Patch: https://github.com/kamailio/kamailio/commit/0894772cd091820e106421af85f9697a...
---
diff --git a/utils/kamcmd/README b/utils/kamcmd/README index b5005ef716..50e83e693c 100644 --- a/utils/kamcmd/README +++ b/utils/kamcmd/README @@ -40,7 +40,7 @@ Options: -h Help message address: [proto:]name[:port] where proto is one of tcp, udp, unixs, unix or unixd - e.g.: tcp:localhost:2048 , unixs:/tmp/ser_ctl + e.g.: tcp:localhost:2049 , unixs:/tmp/ser_ctl If the protocol is not specified, unixs will be used if name is a filesystem path and udp if not. "unixs" or "unix" stand for unix stream sockets @@ -141,12 +141,12 @@ $ kamcmd cfg.cfg_set_int_now debug 5 # turn debug level to 5 (needs cfg) $ kamcmd # enters interactive mode
Using a tcp socket -(assumes modparam("ctl", "binrpc", "tcp:localhost:2048") in kamailio.cfg) +(assumes modparam("ctl", "binrpc", "tcp:localhost:2049") in kamailio.cfg)
-$ kamcmd -s tcp:localhost:2048 core.version +$ kamcmd -s tcp:localhost:2049 core.version Server: Kamailio (3.3.2 (i386/linux))
-$ kamcmd -s tcp:localhost:2048 SRV _sip._udp.iptel.org +$ kamcmd -s tcp:localhost:2049 SRV _sip._udp.iptel.org name: _sip._udp.iptel.org type: SRV size (bytes): 104 @@ -161,7 +161,7 @@ $ kamcmd -s tcp:localhost:2048 SRV _sip._udp.iptel.org rr expires in (s): 67693 rr error flags: 0
-kamcmd -s tcp:127.0.0.1:2048 # enters interactive mode over tcp +kamcmd -s tcp:127.0.0.1:2049 # enters interactive mode over tcp
For more examples see utils/kamcmd/EXAMPLES [http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob;f=utils/kam...]. diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 9e62c90722..f1cbc24d68 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -103,7 +103,7 @@ Options:\n\ -h This help message\n\ address:\n\ [proto:]name[:port] where proto is one of tcp, udp, unixs or unixd\n\ - e.g.: tcp:localhost:2048 , unixs:/tmp/kamailio_ctl\n\ + e.g.: tcp:localhost:2049 , unixs:/tmp/kamailio_ctl\n\ cmd:\n\ method [arg1 [arg2...]]\n\ arg:\n\