#### Pre-Submission Checklist
- [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)
- [x] 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
- [x] 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:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
This PR replicates sentinel logic added in initial redis connection (via cc8e621) into reconnection function.
This way, in case of loosing connection with Redis, Kamailio will be able to reconnect to redis asking to sentinel servers defined in modparams.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2319
-- Commit Summary --
* ndb_redis: add sentinel support to reconnection logic
-- File Changes --
M src/modules/ndb_redis/redis_client.c (84)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2319.patchhttps://github.com/kamailio/kamailio/pull/2319.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/2319
<!-- 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)
- [x] 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)
- [x] 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
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This change allows you to set a new callback for keepalive that will be executed each time it receives a response for an OPTIONS message.
This change is compatible (not breaking) with .cfg or kemi invocations, but it's breaking developers api.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2318
-- Commit Summary --
* keepalive: Added callback to run on each destination response.
* drouting: update to new keepalive interface, using new on response callback
-- File Changes --
M src/modules/drouting/drouting.c (2)
M src/modules/keepalive/api.h (3)
M src/modules/keepalive/doc/keepalive.xml (1)
M src/modules/keepalive/doc/keepalive_devel.xml (32)
M src/modules/keepalive/keepalive.h (7)
M src/modules/keepalive/keepalive_api.c (5)
M src/modules/keepalive/keepalive_core.c (3)
M src/modules/keepalive/keepalive_mod.c (6)
M src/modules/keepalive/keepalive_rpc.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2318.patchhttps://github.com/kamailio/kamailio/pull/2318.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/2318
Module: kamailio
Branch: master
Commit: 9700a8dae237758e162e509455bc3a62b19730f4
URL: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
Author: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Committer: Nacho Garcia Segovia <nacho.gs(a)zaleos.net>
Date: 2020-05-07T23:50:10+02:00
keepalive: Added callback to run on each destination response.
- This functionality it's just available when using api.h bindings. For exported functions no callback will be used, so this doesn't break cfg or rpc api.
- Modified add_destination function to provide this new callback as a parameter.
---
Modified: src/modules/keepalive/api.h
Modified: src/modules/keepalive/doc/keepalive.xml
Modified: src/modules/keepalive/doc/keepalive_devel.xml
Modified: src/modules/keepalive/keepalive.h
Modified: src/modules/keepalive/keepalive_api.c
Modified: src/modules/keepalive/keepalive_core.c
Modified: src/modules/keepalive/keepalive_mod.c
Modified: src/modules/keepalive/keepalive_rpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
Patch: https://github.com/kamailio/kamailio/commit/9700a8dae237758e162e509455bc3a6…
Module: kamailio
Branch: master
Commit: 4d450116309d1a2e2b6aceb6fa16657a1e9f44fb
URL: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-05-12T09:16:20+02:00
modules: readme files regenerated - tls ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657…
Patch: https://github.com/kamailio/kamailio/commit/4d450116309d1a2e2b6aceb6fa16657…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 04503393a2..81eb47590b 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -638,7 +638,7 @@ Place holder
use SSLv3 for anything which should be secure.
* SSLv2 - only SSLv2 connections, for old clients. Note: you
shouldn't use SSLv2 for anything which should be secure. Newer
- versions of libssl don't include support for it anymore.
+ versions of OpenSSL libraries don't include support for it anymore.
* SSLv23 - any of the SSLv2, SSLv3 and TLSv1 or newer methods will be
accepted.
From the OpenSSL manual: "A TLS/SSL connection established with
@@ -649,9 +649,9 @@ Place holder
TLSv1.2 and permits a fallback to SSLv3. A server will support
SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. This is the best
choice when compatibility is a concern."
- Note: For older libssl version, this option allows SSLv2, with
- hello messages done over SSLv2. You shouldn't use SSLv2 or SSLv3
- for anything which should be secure.
+ Note: For older OpenSSL library versions, this option allows SSLv2,
+ with hello messages done over SSLv2. You shouldn't use SSLv2 or
+ SSLv3 for anything which should be secure.
If RFC 3261 conformance is desired, at least TLSv1 must be used. For
compatibility with older clients SSLv23 is the option, but again, be
@@ -1220,7 +1220,7 @@ modparam("tls", "session_cache", 1)
The value for session ID context, making sense when session caching is
enabled.
- By default TLS session_id is "sip-router-tls-3.1".
+ By default TLS session_id is "kamailio-tls-5.x.y".
Example 1.38. Set session_id parameter
...
@@ -1477,7 +1477,7 @@ modparam("tls", "private_key", "/engine:my_HSM_key_label")
modparam("tls", "engine", "pkcs11")
modparam("tls", "private_key", "/engine:pkcs11:token=MYTOKEN;object=MYKEYLABEL")
-modparam("tls", "engine_conf", "/usr/local/etc/kamailio/openssl.cnf")
+modparam("tls", "engine_config", "/usr/local/etc/kamailio/openssl.cnf")
modparam("tls", "engine_algorithms", "ALL")
...