Hello,
not so many fixes since the release of 5.3.1, but it looks enough to
release a new minor version from branch 5.3. I am planning to do in on
Thursday, Jan 9, 2020, if there are no new reports of relevant issues
that make us to reconsider and postpone.
Soon after we should probably do a release from branch 5.2 as well as
the last one from branch 5.1.
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
Hi all,
MQTT module does not build correctly on old debian'ish distributions.
Jenkins reported FTBS errors in wheezy, precise and trusty this night.
libmosquitto is very old there and has IMHO no or very limited TLS support.
It's my first module, so what's the policy? Should i add a compile time define to disable TLS?
Or will you change the packaging to not build it for older distributions?
Cheers,
Thomas
Module: kamailio
Branch: master
Commit: 5aad5de690594449d8b1eaa8137fb858a97f4a07
URL: https://github.com/kamailio/kamailio/commit/5aad5de690594449d8b1eaa8137fb85…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-01-08T21:16:12+01:00
modules: readme files regenerated - app_ruby ... [skip ci]
---
Modified: src/modules/app_ruby/README
---
Diff: https://github.com/kamailio/kamailio/commit/5aad5de690594449d8b1eaa8137fb85…
Patch: https://github.com/kamailio/kamailio/commit/5aad5de690594449d8b1eaa8137fb85…
---
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: master
Commit: 4b30a3c4a9fc9d4ca7d3ce40fc5a0637f2386646
URL: https://github.com/kamailio/kamailio/commit/4b30a3c4a9fc9d4ca7d3ce40fc5a063…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T21:07:11+01:00
app_ruby: docs for xval_mode parameter
---
Modified: src/modules/app_ruby/doc/app_ruby_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4b30a3c4a9fc9d4ca7d3ce40fc5a063…
Patch: https://github.com/kamailio/kamailio/commit/4b30a3c4a9fc9d4ca7d3ce40fc5a063…
---
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>
When compiling a custom module, including `shm_mem.h` caused the
following compilation error:
In file included from ../../core/mem/shm_mem.h:32,
from custom_code.cpp:40:
../../core/parser/../ut.h: In function ‘char* shm_char_dup(const char*)’:
../../core/mem/shm.h:67:49: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
67 | # define shm_malloc(s) _shm_root.xmalloc(_shm_root.mem_block, (s))
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
../../core/parser/../ut.h:811:9: note: in expansion of macro ‘shm_malloc’
811 | rval = shm_malloc(len);
| ^~~~~~~~~~
gcc version: `gcc (Debian 9.2.1-22) 9.2.1 20200104`
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2191
-- Commit Summary --
* Explicitly cast void* to char*
-- File Changes --
M src/core/ut.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2191.patchhttps://github.com/kamailio/kamailio/pull/2191.diff
--
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/pull/2191