Module: kamailio
Branch: master
Commit: d93b1861c6e9be5991040d2da327d2f543d9f9ab
URL: https://github.com/kamailio/kamailio/commit/d93b1861c6e9be5991040d2da327d2f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-08-13T09:15:43+02:00
http_client: docs for query_result parameter
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/d93b1861c6e9be5991040d2da327d2f…
Patch: https://github.com/kamailio/kamailio/commit/d93b1861c6e9be5991040d2da327d2f…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml b/src/modules/http_client/doc/http_client_admin.xml
index 70bcd2a433..55c65ccc97 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -36,10 +36,10 @@
<para>
Like in SIP, the HTTP URL may need encoding to be transported safely
over the network. Check the string encoding functions in the Transformation
- Cookbook (as used in the http_client_query example below).
+ Cookbook (as used in the http_client_query() example below).
</para>
<para>
- The function http_client_query allows &kamailio; to issue an HTTP GET
+ The function http_client_query() allows &kamailio; to issue an HTTP GET
request and get access to parts of the reply. This function has
been ported from the utils module and now use the same libcurl
functions. We recommend using the new functionality provided by
@@ -433,6 +433,31 @@ modparam("http_client", "authmethod", 3)
<programlisting format="linespecific">
...
modparam("http_client", "keep_connections", 1)
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="http_client.p.query_result">
+ <title><varname>query_result</varname> (int)</title>
+ <para>
+ Control what is returned by the http_client_query(...) in the result
+ variable.
+ </para>
+ <para>
+ Valid values are:
+ <itemizedlist>
+ <listitem><para>0 - Return the entire HTTP result body</para></listitem>
+ <listitem><para>1 - Return the first oine from HTTP result body</para></listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ Default value: 1 (return first line).
+ </para>
+ <example>
+ <title>Set <varname>query_result</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("http_client", "query_result", 0)
...
</programlisting>
</example>
@@ -796,17 +821,18 @@ http_get_redirect("apiserver", "$var(targeturl)");
</para>
<para>
If HTTP server returns a class 2xx, 3xx or 4xx reply,
- the first line of the reply's body (if any) is
+ the first line or the entire reply body (if any) is
stored in <quote>result</quote> parameter,
- which must be a writable pseudo variable.
+ which must be a writable pseudo variable. See the query_result
+ parameter for controling what value to be stored in the result
+ variable.
</para>
<para>
Function returns reply code of HTTP reply or -1
if something went wrong.
</para>
<para>
- This function can be used from REQUEST_ROUTE,
- ONREPLY_ROUTE, FAILURE_ROUTE, and BRANCH_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<para>
Note that this function is based on the http_query function in the utils module.
Module: kamailio
Branch: master
Commit: b3d9da5c5e80e42e550c4cf56c29aee1ab068c92
URL: https://github.com/kamailio/kamailio/commit/b3d9da5c5e80e42e550c4cf56c29aee…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-08-12T21:01:45+02:00
modules: readme files regenerated - topos ... [skip ci]
---
Modified: src/modules/topos/README
---
Diff: https://github.com/kamailio/kamailio/commit/b3d9da5c5e80e42e550c4cf56c29aee…
Patch: https://github.com/kamailio/kamailio/commit/b3d9da5c5e80e42e550c4cf56c29aee…
---
diff --git a/src/modules/topos/README b/src/modules/topos/README
index d75a9de697..d430714543 100644
--- a/src/modules/topos/README
+++ b/src/modules/topos/README
@@ -197,7 +197,11 @@ modparam("topos", "branch_expire", 300)
3.6. dialog_expire (int)
- Interval in seconds after which the dialog records are deleted.
+ Interval in seconds after which the dialog records are deleted. Keep in
+ mind that the module does not update the dialog timestamp after the
+ initial call setup on re-INVITEs or other in-dialog messages. So set a
+ large enough value (according your longest call duration) to prevent
+ problems in re-writing messages.
Default value is 10800 (3 hours).
Module: kamailio
Branch: 5.2
Commit: db0ae1e3dde3331810ba8b154d7e111bf3322583
URL: https://github.com/kamailio/kamailio/commit/db0ae1e3dde3331810ba8b154d7e111…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-08-12T21:01:32+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/topos/README
---
Diff: https://github.com/kamailio/kamailio/commit/db0ae1e3dde3331810ba8b154d7e111…
Patch: https://github.com/kamailio/kamailio/commit/db0ae1e3dde3331810ba8b154d7e111…
---
diff --git a/src/modules/topos/README b/src/modules/topos/README
index d75a9de697..d430714543 100644
--- a/src/modules/topos/README
+++ b/src/modules/topos/README
@@ -197,7 +197,11 @@ modparam("topos", "branch_expire", 300)
3.6. dialog_expire (int)
- Interval in seconds after which the dialog records are deleted.
+ Interval in seconds after which the dialog records are deleted. Keep in
+ mind that the module does not update the dialog timestamp after the
+ initial call setup on re-INVITEs or other in-dialog messages. So set a
+ large enough value (according your longest call duration) to prevent
+ problems in re-writing messages.
Default value is 10800 (3 hours).
Module: kamailio
Branch: 5.2
Commit: 6e5cb772817a8275c89869c868ce20a2ddb47df9
URL: https://github.com/kamailio/kamailio/commit/6e5cb772817a8275c89869c868ce20a…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-08-12T20:55:26+02:00
topos: docs for dialog_expire param limitation for in-dialog requests (GH #2024)
(cherry picked from commit 3ccf5ee691440e806d441f0e58562ddc4137a488)
---
Modified: src/modules/topos/doc/topos_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6e5cb772817a8275c89869c868ce20a…
Patch: https://github.com/kamailio/kamailio/commit/6e5cb772817a8275c89869c868ce20a…
---
diff --git a/src/modules/topos/doc/topos_admin.xml b/src/modules/topos/doc/topos_admin.xml
index b81672b006..681c5bb9a1 100644
--- a/src/modules/topos/doc/topos_admin.xml
+++ b/src/modules/topos/doc/topos_admin.xml
@@ -192,6 +192,10 @@ modparam("topos", "branch_expire", 300)
<title><varname>dialog_expire</varname> (int)</title>
<para>
Interval in seconds after which the dialog records are deleted.
+ Keep in mind that the module does not update the dialog timestamp
+ after the initial call setup on re-INVITEs or other in-dialog
+ messages. So set a large enough value (according your longest call
+ duration) to prevent problems in re-writing messages.
</para>
<para>
<emphasis>
Module: kamailio
Branch: master
Commit: 3ccf5ee691440e806d441f0e58562ddc4137a488
URL: https://github.com/kamailio/kamailio/commit/3ccf5ee691440e806d441f0e58562dd…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-08-12T20:54:48+02:00
topos: docs for dialog_expire param limitation for in-dialog requests (GH #2024)
---
Modified: src/modules/topos/doc/topos_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3ccf5ee691440e806d441f0e58562dd…
Patch: https://github.com/kamailio/kamailio/commit/3ccf5ee691440e806d441f0e58562dd…
---
diff --git a/src/modules/topos/doc/topos_admin.xml b/src/modules/topos/doc/topos_admin.xml
index b81672b006..681c5bb9a1 100644
--- a/src/modules/topos/doc/topos_admin.xml
+++ b/src/modules/topos/doc/topos_admin.xml
@@ -192,6 +192,10 @@ modparam("topos", "branch_expire", 300)
<title><varname>dialog_expire</varname> (int)</title>
<para>
Interval in seconds after which the dialog records are deleted.
+ Keep in mind that the module does not update the dialog timestamp
+ after the initial call setup on re-INVITEs or other in-dialog
+ messages. So set a large enough value (according your longest call
+ duration) to prevent problems in re-writing messages.
</para>
<para>
<emphasis>