Module: kamailio
Branch: master
Commit: ee32a6ee4cb6201c834e3c39a0ae24d9dfa966d9
URL: https://github.com/kamailio/kamailio/commit/ee32a6ee4cb6201c834e3c39a0ae24d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-04-12T09:09:38+02:00
tls: docs - short note about libssl 1.1.x and openssl_mutex_shared
---
Modified: src/modules/tls/doc/tls.xml
---
Diff: https://github.com/kamailio/kamailio/commit/ee32a6ee4cb6201c834e3c39a0ae24d…
Patch: https://github.com/kamailio/kamailio/commit/ee32a6ee4cb6201c834e3c39a0ae24d…
---
diff --git a/src/modules/tls/doc/tls.xml b/src/modules/tls/doc/tls.xml
index fe10eec08a..b5ea415ae7 100644
--- a/src/modules/tls/doc/tls.xml
+++ b/src/modules/tls/doc/tls.xml
@@ -121,6 +121,11 @@ request_route {
To quickly check if your Kamailio version was compiled with these
options, run kamailio -V and look for USE_TLS and TLS_HOOKS among the flags.
</para>
+ <para>
+ For OpenSSL (libssl) v1.1.x, it is required to preload
+ 'openssl_mutex_shared' library shipped by &kamailio;. For more details
+ see 'src/modules/tls/openssl_mutex_shared/README.md'.
+ </para>
<para>
This module includes several workarounds for various Openssl bugs
(like compression and Kerberos using the wrong memory allocations
Module: kamailio
Branch: master
Commit: 4c0aa78b057b155c2f2b224457790169f5bf8eda
URL: https://github.com/kamailio/kamailio/commit/4c0aa78b057b155c2f2b22445779016…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-04-12T09:03:58+02:00
tls: added a readme for openssl_mutex_shared
---
Added: src/modules/tls/utils/openssl_mutex_shared/README.md
---
Diff: https://github.com/kamailio/kamailio/commit/4c0aa78b057b155c2f2b22445779016…
Patch: https://github.com/kamailio/kamailio/commit/4c0aa78b057b155c2f2b22445779016…
---
diff --git a/src/modules/tls/utils/openssl_mutex_shared/README.md b/src/modules/tls/utils/openssl_mutex_shared/README.md
new file mode 100644
index 0000000000..9f2e9c57e3
--- /dev/null
+++ b/src/modules/tls/utils/openssl_mutex_shared/README.md
@@ -0,0 +1,53 @@
+# OpenSSL Shared Mutex #
+
+This is a shared library required as a short term workaround for using Kamailio
+with OpenSSL (libssl) v1.1. It has to be pre-loaded before starting Kamailio.
+
+In v1.1, libssl does not allow setting custom locking functions, using internally
+pthread mutexes and rwlocks, but they are not initialized with process shared
+option (PTHREAD_PROCESS_SHARED), which can result in blocking Kamailio worker
+processes.
+
+## Installation ##
+
+By default, it is installed when the tls module is installed.
+
+It can be installed manually, in this folder execute:
+
+```
+make
+make install
+```
+
+It is installed at the same place where Kamailio deploys the directory with
+modules.
+
+For example, when installing from sources on a 64b system, the location is:
+
+```
+/usr/local/lib64/kamailio/openssl_mutex_shared/openssl_mutex_shared.so
+```
+
+For Debian packing, the location is like:
+
+```
+/usr/lib/x86_64-linux-gnu/kamailio/openssl_mutex_shared/openssl_mutex_shared.so
+```
+
+## Usage ##
+
+Use LD_PRELOAD to tell the linker to preload this shared object before starting
+Kamailio.
+
+Example, when Kamailio was installed from sources:
+
+```
+LD_PRELOAD=/usr/local/lib64/kamailio/openssl_mutex_shared/openssl_mutex_shared.so; \
+ /usr/local/sbin/kamailio -f /usr/local/etc/kamailio/kamailio.cfg
+```
+
+If using systemd, add to service file:
+
+```
+Environment='LD_PRELOAD=/usr/local/lib64/kamailio/openssl_mutex_shared/openssl_mutex_shared.so'
+```
Module: kamailio
Branch: master
Commit: aa7dee1ab874aaac807c2166f38ec9da0fa0ccf6
URL: https://github.com/kamailio/kamailio/commit/aa7dee1ab874aaac807c2166f38ec9d…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-04-13T19:52:03+02:00
uac: bug fix for uac module uac_replace* functions, register callbacks after start
- bug fix for uac module uac_replace* functions, register callbacks after restart
- only applies to the dialog tracking mode of the module
- the uac module was not using the available dialog callbacks for a proxy (re-)start
- because of this the uac module was not able to properly re-write in-dialog messages
like BYEs after a proxy restart
- As we don't have access to the uac_flag at the dialog on load callback, we just
install a callback for both from and to rewriting cases. If only one of the
functions is used in the cfg hen the uac module will obviously not find
database variables for the other case, and will log an error. This is of
course also a bit inefficient, but as it only applies to this (re-)start
case it does not matter.
---
Modified: src/modules/uac/replace.c
Modified: src/modules/uac/replace.h
Modified: src/modules/uac/uac.c
---
Diff: https://github.com/kamailio/kamailio/commit/aa7dee1ab874aaac807c2166f38ec9d…
Patch: https://github.com/kamailio/kamailio/commit/aa7dee1ab874aaac807c2166f38ec9d…
Module: kamailio
Branch: master
Commit: e2de33b01efdd2c9799a1d5cf9d0e7d127a36416
URL: https://github.com/kamailio/kamailio/commit/e2de33b01efdd2c9799a1d5cf9d0e7d…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-04-13T13:23:08+02:00
uac: log an error if uac module should use the dialog module and it can't bind the API
---
Modified: src/modules/uac/uac.c
---
Diff: https://github.com/kamailio/kamailio/commit/e2de33b01efdd2c9799a1d5cf9d0e7d…
Patch: https://github.com/kamailio/kamailio/commit/e2de33b01efdd2c9799a1d5cf9d0e7d…
---
diff --git a/src/modules/uac/uac.c b/src/modules/uac/uac.c
index d74c1cf47f..8528027f7e 100644
--- a/src/modules/uac/uac.c
+++ b/src/modules/uac/uac.c
@@ -295,14 +295,17 @@ static int mod_init(void)
/* we need the append_fromtag on in RR */
memset(&dlg_api, 0, sizeof(struct dlg_binds));
- if (uac_restore_dlg==0 || load_dlg_api(&dlg_api)!=0) {
+ if (uac_restore_dlg==0) {
if (!uac_rrb.append_fromtag) {
LM_ERR("'append_fromtag' RR param is not enabled!"
" - required by AUTO restore mode\n");
goto error;
}
- if (uac_restore_dlg!=0)
- LM_DBG("failed to find dialog API - is dialog module loaded?\n");
+ } else {
+ if (load_dlg_api(&dlg_api)!=0) {
+ LM_ERR("failed to find dialog API - is dialog module loaded?\n");
+ goto error;
+ }
}
/* get all requests doing loose route */
HI i have install Kamailio 5.1.2 on Ubuntu 18.4
there is a audio issue , when we call call from one extension to another ,,
in bigning call goes good , after 9-10 sec it miss audio for one side (one
side can hear other side can't hear )
plz help
--
*Regards:*
Gaurav Kumar