### Description
The Kemi framework supports `KSR.info()` and `KSR.warn()`, but the level in between is missing. Our legacy systems use INFO logging in our dev systems and NOTICE logging in production environment. So everytime we replace some legacy Kamailio config with Kemi code, we stumble upon then missing `KSR.notice()` method or the missing "notice" level parameter to `KSR.log()`.
--
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/2193
Hello,
Kamailio SIP Server v5.3.2 stable release is out.
This is a maintenance release of the latest stable branch, 5.3, that
includes fixes since the release of v5.3.1. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.3.x. Deployments running previous v5.3.x
versions are strongly recommended to be upgraded to v5.3.2.
For more details about version 5.3.2 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2020/01/kamailio-v5-3-2-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com
Module: kamailio
Branch: 5.3
Commit: eb319d6d6bbf28cf17236764b892520197c85b86
URL: https://github.com/kamailio/kamailio/commit/eb319d6d6bbf28cf17236764b892520…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-01-09T10:01:36+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/app_ruby/README
---
Diff: https://github.com/kamailio/kamailio/commit/eb319d6d6bbf28cf17236764b892520…
Patch: https://github.com/kamailio/kamailio/commit/eb319d6d6bbf28cf17236764b892520…
---
diff --git a/src/modules/app_ruby/README b/src/modules/app_ruby/README
index cf1ba153b0..9afc281b7f 100644
--- a/src/modules/app_ruby/README
+++ b/src/modules/app_ruby/README
@@ -26,6 +26,7 @@ Daniel-Constantin Mierla
3. Parameters
3.1. load (str)
+ 3.2. xval_mode (int)
4. Functions
@@ -41,7 +42,8 @@ Daniel-Constantin Mierla
List of Examples
1.1. Set load parameter
- 1.2. jsdt_run usage
+ 1.2. Set xval_mode parameter
+ 1.3. jsdt_run usage
Chapter 1. Admin Guide
@@ -56,6 +58,7 @@ Chapter 1. Admin Guide
3. Parameters
3.1. load (str)
+ 3.2. xval_mode (int)
4. Functions
@@ -101,6 +104,7 @@ Chapter 1. Admin Guide
3. Parameters
3.1. load (str)
+ 3.2. xval_mode (int)
3.1. load (str)
@@ -116,6 +120,27 @@ Chapter 1. Admin Guide
modparam("app_ruby", "load", "/usr/local/etc/kamailio/ruby/myscript.rb")
...
+3.2. xval_mode (int)
+
+ Control if the external sub-module functions returning extended-values
+ should propagate their string return value (when set to 0) or be
+ replaced by NULL/nil (when set to 1).
+
+ When set to 0, the KSR::PV Ruby submodule is implemented with the
+ internal functions from the app_ruby module, otherwise the ones from
+ core are used.
+
+ Note: when set to 1, there were crashing reports that are under
+ investigation, this option being provided as intermediary solution to
+ preserve the behaviour from older versions.
+
+ Default value is “0”.
+
+ Example 1.2. Set xval_mode parameter
+...
+modparam("app_ruby", "xval_mode", 1)
+...
+
4. Functions
4.1. ruby_run(function, params)
@@ -127,7 +152,7 @@ modparam("app_ruby", "load", "/usr/local/etc/kamailio/ruby/myscript.rb")
loaded at startup via parameter 'load'. Parameters can be strings with
pseudo-variables that are evaluated at runtime.
- Example 1.2. jsdt_run usage
+ Example 1.3. jsdt_run usage
...
if(!ruby_run("rb_append_fu_to_reply"))
{
Module: kamailio
Branch: 5.3
Commit: 8830a13af10e5d13e646a8d325e046bc95cc54d5
URL: https://github.com/kamailio/kamailio/commit/8830a13af10e5d13e646a8d325e046b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-09T09:59:48+01:00
app_ruby: docs for xval_mode parameter
(cherry picked from commit 4b30a3c4a9fc9d4ca7d3ce40fc5a0637f2386646)
---
Modified: src/modules/app_ruby/doc/app_ruby_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/8830a13af10e5d13e646a8d325e046b…
Patch: https://github.com/kamailio/kamailio/commit/8830a13af10e5d13e646a8d325e046b…
---
diff --git a/src/modules/app_ruby/doc/app_ruby_admin.xml b/src/modules/app_ruby/doc/app_ruby_admin.xml
index d69d4d880a..872c6cf0d6 100644
--- a/src/modules/app_ruby/doc/app_ruby_admin.xml
+++ b/src/modules/app_ruby/doc/app_ruby_admin.xml
@@ -85,7 +85,37 @@ modparam("app_ruby", "load", "/usr/local/etc/kamailio/ruby/myscript.rb")
</programlisting>
</example>
</section>
-
+ <section id="app_ruby.p.xval_mode">
+ <title><varname>xval_mode</varname> (int)</title>
+ <para>
+ Control if the external sub-module functions returning extended-values
+ should propagate their string return value (when set to 0) or be
+ replaced by NULL/nil (when set to 1).
+ </para>
+ <para>
+ When set to 0, the KSR::PV Ruby submodule is implemented with the
+ internal functions from the app_ruby module, otherwise the ones from
+ core are used.
+ </para>
+ <para>
+ Note: when set to 1, there were crashing reports that are under
+ investigation, this option being provided as intermediary
+ solution to preserve the behaviour from older versions.
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>0</quote>.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>xval_mode</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("app_ruby", "xval_mode", 1)
+...
+</programlisting>
+ </example>
+ </section>
</section>
<section>