Skip to content

Commit

Permalink
utils/kamcmd: default port is 2049, adapt help and README
Browse files Browse the repository at this point in the history
(cherry picked from commit 74375ea)
  • Loading branch information
henningw committed Jul 30, 2019
1 parent dd21d3e commit c93c7eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions utils/kamcmd/README
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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/kamcmd/EXAMPLES].
Expand Down
2 changes: 1 addition & 1 deletion utils/kamcmd/kamcmd.c
Expand Up @@ -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\
Expand Down

0 comments on commit c93c7eb

Please sign in to comment.