<!-- 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 -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] 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
Adding an optional forth parameter to jwt module to add headers.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2971
-- Commit Summary --
* jwt: possibility to add headers when generating jwt
-- File Changes --
M src/modules/jwt/doc/jwt_admin.xml (11)
M src/modules/jwt/jwt_mod.c (85)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2971.patchhttps://github.com/kamailio/kamailio/pull/2971.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/2971
Module: kamailio
Branch: master
Commit: 8df3752c2d7ea37b4acadf76283287744a56005a
URL: https://github.com/kamailio/kamailio/commit/8df3752c2d7ea37b4acadf762832877…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-14T14:16:31+01:00
modules: readme files regenerated - tls ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/8df3752c2d7ea37b4acadf762832877…
Patch: https://github.com/kamailio/kamailio/commit/8df3752c2d7ea37b4acadf762832877…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 127cfa7601..94c8cfc069 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -234,6 +234,14 @@ Chapter 1. Admin Guide
module that uses libssl (OpenSSL library). A safe option is to have the
tls module loaded first (be in the first "loadmodule" in Kamailio.cfg).
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require Kamailio to be started with --atexit=no
+ command line parameters to avoid calling C atexit callbacks inside the
+ process ending during daemonize procedure as well as during shut down,
+ which can lead to crashes because it destroys and then accesses shared
+ memory. For example, such case has been reported for Ubuntu 20.04 or
+ RedHat 8.
+
2. Quick Start
The default kamailio.cfg file has basic tls support included, it has to
Module: kamailio
Branch: master
Commit: 8dc18cab5bc32c1d34a9113242d230b7458d4075
URL: https://github.com/kamailio/kamailio/commit/8dc18cab5bc32c1d34a9113242d230b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-14T14:02:41+01:00
tls: docs - added note about --atexit=no cli param for newer libssl versions
---
Modified: src/modules/tls/doc/tls.xml
---
Diff: https://github.com/kamailio/kamailio/commit/8dc18cab5bc32c1d34a9113242d230b…
Patch: https://github.com/kamailio/kamailio/commit/8dc18cab5bc32c1d34a9113242d230b…
---
diff --git a/src/modules/tls/doc/tls.xml b/src/modules/tls/doc/tls.xml
index b5ea415ae79..e356d5bff7c 100644
--- a/src/modules/tls/doc/tls.xml
+++ b/src/modules/tls/doc/tls.xml
@@ -64,6 +64,15 @@
that uses libssl (OpenSSL library). A safe option is to have the tls module
loaded first (be in the first "loadmodule" in &kamailio;.cfg).
</para>
+ <para>
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require &kamailio; to be started with
+ <emphasis>--atexit=no</emphasis> command line parameters to avoid
+ calling C atexit callbacks inside the process ending during
+ daemonize procedure as well as during shut down, which can lead
+ to crashes because it destroys and then accesses shared memory. For
+ example, such case has been reported for Ubuntu 20.04 or RedHat 8.
+ </para>
</section>
<section id="tls.quick_start">
<title>Quick Start</title>
### Description
Hi,
I have been doing some load testing on kamailio 5.4.7 running in podman.
Kamailio is using dmq to share dialogs and htable with a backup Kamailio also running 5.4.7.
I tested with 100 CPS and during the first minutes all calls are being processed correctly but then all the messages start to be retransmitted.
Kamailio is not processing any sip messages anymore but still replies to HTTP requests, is still possible to run kamctl/kamcmd commands on it but for example, if running the command "kamcmd dlg.list" nothing happens.
Also, I did a load test with the backup Kamailio turn off so that there is no replication between them, and in that case, I can run the 100 CPS without any issue.
In kamcmd trap file I can see a lot of "<error: Cannot access memory" errors.
In order for Kamailio to start processing again sip, I need to restart it.
Any extra logs that I can try to collect when the problem happens?
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
[trap.txt](https://github.com/kamailio/kamailio/files/7705076/trap.txt)
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.4.7 (x86_64/linux) a19fe1
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: a19fe1
compiled on 14:06:57 Dec 13 2021 with gcc 10.2.1
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
```
--
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/2974