Module: kamailio
Branch: master
Commit: 45bbb8e73fea0c8cc9fa21cd62a9a52f2854e820
URL: https://github.com/kamailio/kamailio/commit/45bbb8e73fea0c8cc9fa21cd62a9a52…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-12-19T18:31:15+01:00
modules: readme files regenerated - jsonrpcs ...
---
Modified: src/modules/jsonrpcs/README
---
Diff: https://github.com/kamailio/kamailio/commit/45bbb8e73fea0c8cc9fa21cd62a9a52…
Patch: https://github.com/kamailio/kamailio/commit/45bbb8e73fea0c8cc9fa21cd62a9a52…
---
diff --git a/src/modules/jsonrpcs/README b/src/modules/jsonrpcs/README
index 8dd714f..8457e16 100644
--- a/src/modules/jsonrpcs/README
+++ b/src/modules/jsonrpcs/README
@@ -190,7 +190,7 @@ modparam("jsonrpcs", "pretty_format", 1)
sum of the desired transports to enable them. For example, enabling
FIFO and DATAGRAM can be done setting transport=6.
- Default value is '0'.
+ Default value is '6' (fifo and datagram transport).
Example 1.2. Set transport parameter
...
@@ -203,11 +203,11 @@ modparam("jsonrpcs", "transport", 1)
external commands. If the given path is not absolute, the fifo file is
created relative to run_dir (global parameter).
- Default value is NONE.
+ Default value is "kamailio_rpc.fifo".
Example 1.3. Set fifo_name parameter
...
-modparam("jsonrpcs", "fifo_name", "/tmp/kamailio_jsonrpc_fifo")
+modparam("jsonrpcs", "fifo_name", "/tmp/kamailio_jsonrpc.fifo")
...
4.4. fifo_mode (int)
@@ -259,11 +259,13 @@ modparam("jsonrpcs", "fifo_reply_dir", "/home/kamailio/tmp/")
4.8. dgram_socket (str)
- The name of a UNIX SOCKET or an IP address. The UNIX datagram or UDP
- socket will be created using this parameter in order to read the
- external commands. Both IPv4 and IPv6 are supported.
+ The name of a Unix socket file or an IP address. The Unix datagram or
+ UDP socket will be created using this parameter in order to read the
+ external commands. Both IPv4 and IPv6 are supported. If the given path
+ for Unix socket is not absolute, then it is created relative to run_dir
+ (global parameter).
- Default value is NONE.
+ Default value is "kamailio_rpc.sock".
Example 1.8. Set dgram_socket parameter
...
Module: kamailio
Branch: master
Commit: 72665844e30a42a383d698b61062d070b50b4c85
URL: https://github.com/kamailio/kamailio/commit/72665844e30a42a383d698b61062d07…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-19T18:30:33+01:00
jsonrpcs: updates to default trasports docs
---
Modified: src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/72665844e30a42a383d698b61062d07…
Patch: https://github.com/kamailio/kamailio/commit/72665844e30a42a383d698b61062d07…
---
diff --git a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
index ac9d078..587eba9 100644
--- a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
+++ b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
@@ -133,7 +133,7 @@ modparam("jsonrpcs", "pretty_format", 1)
</para>
<para>
<emphasis>
- Default value is '0'.
+ Default value is '6' (fifo and datagram transport).
</emphasis>
</para>
<example>
@@ -154,14 +154,14 @@ modparam("jsonrpcs", "transport", 1)
</para>
<para>
<emphasis>
- Default value is NONE.
+ Default value is "&kamailiobinary;_rpc.fifo".
</emphasis>
</para>
<example>
<title>Set <varname>fifo_name</varname> parameter</title>
<programlisting format="linespecific">
...
-modparam("jsonrpcs", "fifo_name", "/tmp/kamailio_jsonrpc_fifo")
+modparam("jsonrpcs", "fifo_name", "/tmp/kamailio_jsonrpc.fifo")
...
</programlisting>
</example>
@@ -253,14 +253,15 @@ modparam("jsonrpcs", "fifo_reply_dir", "/home/kamailio/tmp/")
<section id="jsonrpcs.p.dgram_socket">
<title><varname>dgram_socket</varname> (str)</title>
<para>
- The name of a UNIX SOCKET or an IP address.
- The UNIX datagram or UDP socket will be created using this parameter
- in order to read the external commands.
- Both IPv4 and IPv6 are supported.
+ The name of a Unix socket file or an IP address.
+ The Unix datagram or UDP socket will be created using this parameter
+ in order to read the external commands. Both IPv4 and IPv6 are
+ supported. If the given path for Unix socket is not absolute,
+ then it is created relative to run_dir (global parameter).
</para>
<para>
<emphasis>
- Default value is NONE.
+ Default value is "&kamailiobinary;_rpc.sock".
</emphasis>
</para>
<example>
Module: kamailio
Branch: master
Commit: 7ff4f214be30cd077a44ffa7d5d1b0675366e58b
URL: https://github.com/kamailio/kamailio/commit/7ff4f214be30cd077a44ffa7d5d1b06…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-12-19T14:31:26+01:00
modules: readme files regenerated - sanity ...
---
Modified: src/modules/sanity/README
---
Diff: https://github.com/kamailio/kamailio/commit/7ff4f214be30cd077a44ffa7d5d1b06…
Patch: https://github.com/kamailio/kamailio/commit/7ff4f214be30cd077a44ffa7d5d1b06…
---
diff --git a/src/modules/sanity/README b/src/modules/sanity/README
index 90ea878..4a7fe1e 100644
--- a/src/modules/sanity/README
+++ b/src/modules/sanity/README
@@ -92,6 +92,11 @@ Chapter 1. Admin Guide
* digest credentials (2048) - Check all instances of digest
credentials in a message. The test checks whether there are all
required digest parameters and that they have meaningful values.
+ NOTE: the message will be considered invalid if the authorization
+ scheme differs from "digest",
+ * authorization header (8192) - checks if the Authorization is valid
+ if the scheme is "digest" (see "digest credentials" above), always
+ returns success for other schemes.
2. Dependencies
when using the **sanity** module, with the **SANITY_CHECK_DIGEST** check enabled, if a message contains an "Authorization" header with a different scheme than "digest", the message is considered as invalid, although being perfectly valid.
In your opinion, should the module be modified to not fail when the scheme is different than "digest", or should a new flag (e.g. **SANITY_CHECK_AUTHORIZATION**) be introduced, validating the digest parameters if the scheme is digest and returning success otherwise, to keep the old flag working exactly as it is now?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/892
Hello,
given the work for 5.0 which will bring major changes on source tree
structure, I am considering to remove the - (dash) from the modules that
have it in the name. There are 4 of them now:
cpl-c
janssonrpc-c
jsonrpc-c
jsonrpc-s
One of the reasons is that this kind of name doesn't work for the
feature of defining MOD_modname for each loaded module, because - is a
separator for ids in config language grammar, so for example,
MOD_jsonrpc-c cannot be used in an #!ifdef.
More over, for embedded interpreters, most of exported functions there
use kamailio module name as package name, and again this will break. Of
course, a different package name can be defined, but won't be coherent
anymore.
Anyone against this renaming?
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com