Module: kamailio
Branch: master
Commit: ebbe6268de3aff6ba830f1722942c2f10c6de2f3
URL: https://github.com/kamailio/kamailio/commit/ebbe6268de3aff6ba830f1722942c2f…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-07-04T15:46:14+02:00
modules: readme files regenerated - ndb_redis ... [skip ci]
---
Modified: src/modules/ndb_redis/README
Modified: src/modules/topos/README
---
Diff: https://github.com/kamailio/kamailio/commit/ebbe6268de3aff6ba830f1722942c2f…
Patch: https://github.com/kamailio/kamailio/commit/ebbe6268de3aff6ba830f1722942c2f…
---
diff --git a/src/modules/ndb_redis/README b/src/modules/ndb_redis/README
index 2ca2c52c58..46081b7ec8 100644
--- a/src/modules/ndb_redis/README
+++ b/src/modules/ndb_redis/README
@@ -50,6 +50,7 @@ Carsten Bock
3.7. disable_time (integer)
3.8. flush_on_reconnect (integer)
3.9. allow_dynamic_nodes (integer)
+ 3.10. debug (integer)
4. Functions
@@ -69,9 +70,10 @@ Carsten Bock
1.7. Set disable_time parameter
1.8. Set flush_on_reconnect parameter
1.9. Set allow_dynamic_nodes parameter
- 1.10. redis_cmd usage
- 1.11. redis_execute usage
- 1.12. redis_free usage
+ 1.10. Set debug parameter
+ 1.11. redis_cmd usage
+ 1.12. redis_execute usage
+ 1.13. redis_free usage
Chapter 1. Admin Guide
@@ -94,6 +96,7 @@ Chapter 1. Admin Guide
3.7. disable_time (integer)
3.8. flush_on_reconnect (integer)
3.9. allow_dynamic_nodes (integer)
+ 3.10. debug (integer)
4. Functions
@@ -138,6 +141,7 @@ Chapter 1. Admin Guide
3.7. disable_time (integer)
3.8. flush_on_reconnect (integer)
3.9. allow_dynamic_nodes (integer)
+ 3.10. debug (integer)
3.1. server (str)
@@ -319,6 +323,18 @@ modparam("ndb_redis", "cluster", 1)
modparam("ndb_redis", "allow_dynamic_nodes", 1)
...
+3.10. debug (integer)
+
+ Set the verbosity level for some of the log messages. It has to be a
+ log level value.
+
+ Default value is “3” (L_DBG).
+
+ Example 1.10. Set debug parameter
+...
+modparam("ndb_redis", "debug", 1)
+...
+
4. Functions
4.1. redis_cmd(srvname, command, ..., replyid)
@@ -359,7 +375,7 @@ modparam("ndb_redis", "allow_dynamic_nodes", 1)
value. The key can be: rpl_str, rpl_arr, rpl_int, rpl_err, rpl_sts,
rpl_nil.
- Example 1.10. redis_cmd usage
+ Example 1.11. redis_cmd usage
...
if(redis_cmd("srvN", "INCR cnt", "r")) {
# success - the incremented value is in $redis(r=>value)
@@ -438,7 +454,7 @@ if (redis_cmd("srvN", "EXEC", "r")) {
If cluster parameter is set to 1, this function will log an error and
do nothing.
- Example 1.11. redis_execute usage
+ Example 1.12. redis_execute usage
...
After several redis command calls:
redis_pipe_cmd("srvA", "SET foo bar", "r1");
@@ -486,7 +502,7 @@ d commands. The call is not necessary
function. When ndb_redis module closes, all pending replies are freed
automatically.
- Example 1.12. redis_free usage
+ Example 1.13. redis_free usage
...
After a redis command call:
redis_cmd("srvN", "INCR cnt", "r");
diff --git a/src/modules/topos/README b/src/modules/topos/README
index 4c6c4532ad..b63965cd5d 100644
--- a/src/modules/topos/README
+++ b/src/modules/topos/README
@@ -143,11 +143,13 @@ Chapter 1. Admin Guide
to be loaded (tune the module parameters if needed).
It also works for SIP MESSAGE or other requests that do not create a
- dialog -- record_route() must be used for them as well, the headers are
- not going to be in the messages sent to the network, they are needed to
- know local addresses used to communicate with each side. This module is
- designed to work for presence (SUBSCRIBE-based) dialogs too. The
- REGISTER and PUBLISH requests are skipped from processing by this
+ dialog (e.g., OPTIONS) -- record_route() must be used for them as well,
+ the headers are not going to be in the messages sent to the network,
+ they are needed to know local addresses used to communicate with each
+ side. This module is designed to work for presence (SUBSCRIBE-based)
+ dialogs too.
+
+ The REGISTER and PUBLISH requests are skipped from processing by this
module, expected to be terminated on a local SIP server.
2. Dependencies
Module: kamailio
Branch: master
Commit: b8fc507c9dee07f1a0b7af01d24142240bcd8fa4
URL: https://github.com/kamailio/kamailio/commit/b8fc507c9dee07f1a0b7af01d241422…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-07-04T15:34:47+02:00
topos: docs - small updates to module description
---
Modified: src/modules/topos/doc/topos_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b8fc507c9dee07f1a0b7af01d241422…
Patch: https://github.com/kamailio/kamailio/commit/b8fc507c9dee07f1a0b7af01d241422…
---
diff --git a/src/modules/topos/doc/topos_admin.xml b/src/modules/topos/doc/topos_admin.xml
index 1fb1d1f960..02e7e232d7 100644
--- a/src/modules/topos/doc/topos_admin.xml
+++ b/src/modules/topos/doc/topos_admin.xml
@@ -27,10 +27,12 @@
</para>
<para>
It also works for SIP MESSAGE or other requests that do not create
- a dialog -- record_route() must be used for them as well, the
- headers are not going to be in the messages sent to the network, they
+ a dialog (e.g., OPTIONS) -- record_route() must be used for them as well,
+ the headers are not going to be in the messages sent to the network, they
are needed to know local addresses used to communicate with each side.
- This module is designed to work for presence (SUBSCRIBE-based) dialogs too.
+ This module is designed to work for presence (SUBSCRIBE-based) dialogs too.
+ </para>
+ <para>
The REGISTER and PUBLISH requests are skipped from processing
by this module, expected to be terminated on a local SIP server.
</para>
We use Kamilio as a proxy server to connect softphones to our PBX systems.
We have run into some TLS problems. These problems result in a shut down of the TLS connection after the error is encountered.
We have looked into serial numbers of certificates. The current code in kamailio seems to be broken due to changes in the world around... many certificates today do not adhere to the previously assumed behaviour of certificate serial numbers anymore.
The error which causes the connection to drop seems to be related to a comparison of the certificate serial numbers during renegotiation.
tls_err_ret(): TLS read:error:0D0E10DF:asn1 encoding routines:asn1_get_uint64:too large
Kamailio expects serial numbers to fit in a 64 bit unsigned, however during the last years, starting around 2003 more and more systems use automatically generated serial numbers, which are frequently 128 bit long.
The serialnumber of our own Auerswald root certificate looks to be only 64 bit long, but during the negotiation is presented as 9 bytes starting with 00h, which is interpreted as a 72bit value. Trying to put this serial number in a 64 bit long kills the connection.
Due to the different ways that are used to generate serial numbers now, there is no simple algorithm to condense the number into a 64bit value, and the whole number should be compared to see if it is same or higher.
We currently have disabled renegotiation to avoid the connection being dropped during renegotiation. Which however can lead to the connection being dropped by the other side during renegotiation, but this is not a good permanent workaround!
#### Reproduction
This issue happens infrequently
### Possible Solutions
No workaround possible on our side
### Additional Information
Kamailio Version 5.5.4
LibSSL 1.1.1.n
* **Operating System**:
Linux, Debian oldstable
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3168
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3168(a)github.com>
#### 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:
- [X] PR should be backported to stable branches
- [X] Tested changes locally
- [X] Related to issue #3168
#### Description
Certificate serial numbers can be large integers (> 2^64). Parse then as BIGNUM and store the string
in pv; we cannot store as integer anymore. The original code handles 2^64 with a static buffer of 19.
We upsize to 2^256 with a static buffer of 80.
May break configurations that try to extract the sn pv as an integer (does anyone actually do this?)
Addresses #3168.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3171
-- Commit Summary --
* tls: cert serial number can exceed uint64
-- File Changes --
M src/modules/tls/tls_select.c (24)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3171.patchhttps://github.com/kamailio/kamailio/pull/3171.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3171
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3171(a)github.com>