Module: kamailio
Branch: master
Commit: 8e54f027e8193b70e840033b9c3c5a94ebf5486b
URL: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-12-21T14:46:11+01:00
modules: readme files regenerated - registrar ... [skip ci]
---
Modified: src/modules/registrar/README
---
Diff: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
Patch: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
---
diff --git a/src/modules/registrar/README b/src/modules/registrar/README
index 3298f6f41d..8100557bd5 100644
--- a/src/modules/registrar/README
+++ b/src/modules/registrar/README
@@ -722,13 +722,15 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
Defines the name of XAVP class to store runtime module config values.
The values are stored as inner XAVPs, like $xavp(class=>attribute).
Valid inner XAVP names:
+ * expires - the number of maximum contacts to be stored for the
+ current registration AoR. It overwrites the 'max_contacts' module
+ parameter value.
+ * q - the expires value, to overwrite the value from SIP headers.
* max_contacts - the number of maximum contacts to be stored for the
current registration AoR. It overwrites the 'max_contacts' module
parameter value.
* socket - the string representing the socket on which the register
request was received, as alternative to using the sock_hdr.
- * q - q value of contact (integer 0-1000). It overrides q value given
- in contact header and default_q parameter.
For example. if this parameter is set to 'reg', then the number of
maximum contacts can be set in $xavp(reg=>max_contacts).
@@ -742,6 +744,7 @@ modparam("registrar", "xavp_cfg", "reg")
request_route {
...
$xavp(reg=>max_contacts) = 4;
+ $xavp(reg[0]=>expires) = 600;
save("location");
...
}
Module: kamailio
Branch: master
Commit: 4b7c02c93053076d3089499a0290203157b63c0d
URL: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T14:34:16+01:00
registrar: docs for expires field of xavp_cfg
---
Modified: src/modules/registrar/doc/registrar_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
Patch: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
---
diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml
index 94ce4b3a0b..f4bb213b14 100644
--- a/src/modules/registrar/doc/registrar_admin.xml
+++ b/src/modules/registrar/doc/registrar_admin.xml
@@ -745,24 +745,29 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
<itemizedlist>
<listitem>
<para>
- <emphasis>max_contacts</emphasis> - the number of maximum
+ <emphasis>expires</emphasis> - the number of maximum
contacts to be stored for the current registration AoR. It
overwrites the 'max_contacts' module parameter value.
</para>
</listitem>
<listitem>
<para>
- <emphasis>socket</emphasis> - the string representing the
- socket on which the register request was received, as alternative
- to using the sock_hdr.
+ <emphasis>q</emphasis> - the expires value, to overwrite the
+ value from SIP headers.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>max_contacts</emphasis> - the number of maximum
+ contacts to be stored for the current registration AoR. It
+ overwrites the 'max_contacts' module parameter value.
</para>
</listitem>
<listitem>
<para>
- <emphasis>q</emphasis> - q value of contact
- (integer 0-1000). It
- overrides q value given in contact header and
- default_q parameter.
+ <emphasis>socket</emphasis> - the string representing the
+ socket on which the register request was received, as alternative
+ to using the sock_hdr.
</para>
</listitem>
</itemizedlist>
@@ -784,6 +789,7 @@ modparam("registrar", "xavp_cfg", "reg")
request_route {
...
$xavp(reg=>max_contacts) = 4;
+ $xavp(reg[0]=>expires) = 600;
save("location");
...
}
Hello,
I am planning to release next week (likely on Monday 21st December) the next minor version out of branch 5.3, version 5.3.8.
Backports of fixed issues from git master will be integrated as usual. If you are aware of new issues which were not yet reported, let us know (by creating an issue on the tracker).
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
Module: kamailio
Branch: master
Commit: 729340ff8c80ac836f1889c505cf361abc4fe0ae
URL: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T10:29:28+01:00
http_client: docs for http_client_get()
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
Patch: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml b/src/modules/http_client/doc/http_client_admin.xml
index 6f1c897690..2c8295f07f 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -897,6 +897,35 @@ http_client_query("http://api.com/index.php",
# POST-Request
http_client_query("http://api.com/index.php", "src=$si",
"Content-Type: text/plain", "$var(result)");
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="http_client.f.http_get">
+ <title>
+ <function moreinfo="none">http_client_get(url, body, hdrs, respv)</function>
+ </title>
+ <para>
+ Perform a HTTP GET request to "url", storing the response body
+ in the "respv" variable. The "body" and "hdrs" can be empty strings
+ to skip setting them. The first three parameters can contain
+ variables that are evaluated at runtime. The "respv" has to be
+ the name of a writable variable.
+ </para>
+ <para>
+ Note: usually HTTP GET requests should have no body, according to
+ specs the body in HTTP GET does not affect the response, but is
+ not explicitely forbidden.
+ </para>
+ <example>
+ <title><function>http_client_get()</function> usage</title>
+ <programlisting format="linespecific">
+...
+http_client_get("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escap…",
+ "", "X-Token: abc", "$var(result)");
+switch ($rc) {
+ ...
+}
...
</programlisting>
</example>