Hello,
after fixing the docs I just noticed that 2049 is now taken from NFSv4.
2048 would be free, but then we should change the module default.
Maybe it is worth to change this instead in the source code to 2048. Any
opion on this?
Cheers,
Henning
Am 30.07.19 um 16:38 schrieb Henning Westerholt:
Module: kamailio
Branch: master
Commit: 74375eae8f447952d17a1d89e5a62f029a15a81c
URL:
https://github.com/kamailio/kamailio/commit/74375eae8f447952d17a1d89e5a62f0…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-07-30T16:38:14+02:00
utils/kamcmd: default port is 2049, adapt help and README
---
Modified: utils/kamcmd/README
Modified: utils/kamcmd/kamcmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/74375eae8f447952d17a1d89e5a62f0…
Patch:
https://github.com/kamailio/kamailio/commit/74375eae8f447952d17a1d89e5a62f0…
---
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/ka…].
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\
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev