Module: kamailio
Branch: master
Commit: 650117ebc0a3e0369dd47015f7e96358515fedc9
URL: https://github.com/kamailio/kamailio/commit/650117ebc0a3e0369dd47015f7e9635…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-11-21T11:32:12+01:00
modules: readme files regenerated - topos ... [skip ci]
---
Modified: src/modules/topos/README
---
Diff: https://github.com/kamailio/kamailio/commit/650117ebc0a3e0369dd47015f7e9635…
Patch: https://github.com/kamailio/kamailio/commit/650117ebc0a3e0369dd47015f7e9635…
---
diff --git a/src/modules/topos/README b/src/modules/topos/README
index ad13698a204..70af19ae47e 100644
--- a/src/modules/topos/README
+++ b/src/modules/topos/README
@@ -52,6 +52,7 @@ Frederic Gaisnon
3.19. methods_nocontact (str)
3.20. header_mode (int)
3.21. methods_noinitial (str)
+ 3.22. version_table (integer)
4. Functions
@@ -87,11 +88,12 @@ Frederic Gaisnon
1.19. Set methods_nocontact parameter
1.20. Set header_mode parameter
1.21. Set methods_noinitial parameter
- 1.22. tps_set_context usage
- 1.23. Usage of event_route[topos:msg-outgoing]
- 1.24. Usage of event_route[topos:msg-sending]
- 1.25. Usage of event_route[topos:msg-incoming]
- 1.26. Usage of event_route[topos:msg-receiving]
+ 1.22. version_table parameter usage
+ 1.23. tps_set_context usage
+ 1.24. Usage of event_route[topos:msg-outgoing]
+ 1.25. Usage of event_route[topos:msg-sending]
+ 1.26. Usage of event_route[topos:msg-incoming]
+ 1.27. Usage of event_route[topos:msg-receiving]
Chapter 1. Admin Guide
@@ -126,6 +128,7 @@ Chapter 1. Admin Guide
3.19. methods_nocontact (str)
3.20. header_mode (int)
3.21. methods_noinitial (str)
+ 3.22. version_table (integer)
4. Functions
@@ -202,6 +205,7 @@ Chapter 1. Admin Guide
3.19. methods_nocontact (str)
3.20. header_mode (int)
3.21. methods_noinitial (str)
+ 3.22. version_table (integer)
3.1. storage (str)
@@ -526,6 +530,17 @@ modparam("topos", "header_mode", 1)
modparam("topos", "methods_noinitial", "OPTIONS,NOTIFY")
...
+3.22. version_table (integer)
+
+ If set to 0, the module will skip checking the version of the tables.
+
+ Default value is ���1 (check for table version)���.
+
+ Example 1.22. version_table parameter usage
+...
+modparam("topos", "version_table", 0)
+...
+
4. Functions
4.1. tps_set_context(ctx)
@@ -537,7 +552,7 @@ modparam("topos", "methods_noinitial", "OPTIONS,NOTIFY")
This function can be used from ANY_ROUTE.
- Example 1.22. tps_set_context usage
+ Example 1.23. tps_set_context usage
...
request_route {
...
@@ -565,7 +580,7 @@ request_route {
reparsing the outgoing SIP message for the cases when topology hiding
is not wanted.
- Example 1.23. Usage of event_route[topos:msg-outgoing]
+ Example 1.24. Usage of event_route[topos:msg-outgoing]
...
event_route[topos:msg-outgoing] {
if($sndto(ip)=="10.1.1.10") {
@@ -584,7 +599,7 @@ event_route[topos:msg-outgoing] {
$sndto(proto) point to the destination. The SIP message is the one to
be sent out.
- Example 1.24. Usage of event_route[topos:msg-sending]
+ Example 1.25. Usage of event_route[topos:msg-sending]
...
event_route[topos:msg-sending] {
if(is_request() and $fU=="alice") {
@@ -604,7 +619,7 @@ event_route[topos:msg-sending] {
internally generated one at startup, to avoid reparsing the outgoing
SIP message for the cases when topology hiding is not wanted.
- Example 1.25. Usage of event_route[topos:msg-incoming]
+ Example 1.26. Usage of event_route[topos:msg-incoming]
...
event_route[topos:msg-incoming] {
if($si=="10.1.1.10") {
@@ -622,7 +637,7 @@ event_route[topos:msg-incoming] {
Inside the event route the variables $si, $sp and $proto point to the
source address. The SIP message is the one to be sent out.
- Example 1.26. Usage of event_route[topos:msg-receiving]
+ Example 1.27. Usage of event_route[topos:msg-receiving]
...
event_route[topos:msg-receiving] {
if(is_request() and $fU=="alice") {
<!-- 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
- [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:
<!-- 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 -->
Add a database version check and fail gracefully if it does not match.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3639
-- Commit Summary --
* topos: Add db version check
-- File Changes --
M src/modules/topos/topos_mod.c (26)
M src/modules/topos/tps_storage.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3639.patchhttps://github.com/kamailio/kamailio/pull/3639.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3639
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3639(a)github.com>
```
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_sqlite.so] db_sqlite.so
CC (gcc) [M log_systemd.so] journal_send.o
CC (gcc) [M log_systemd.so] log_systemd_mod.o
LD (gcc) [M log_systemd.so] log_systemd.so
CC (gcc) [M systemdops.so] systemdops_mod.o
LD (gcc) [M systemdops.so] systemdops.so
CC (gcc) [M crypto.so] api.o
CC (gcc) [M crypto.so] crypto_aes.o
CC (gcc) [M crypto.so] crypto_evcb.o
CC (gcc) [M crypto.so] crypto_mod.o
CC (gcc) [M crypto.so] crypto_uuid.o
LD (gcc) [M crypto.so] crypto.so
CC (gcc) [M tls.so] tls_bio.o
CC (gcc) [M tls.so] tls_cfg.o
CC (gcc) [M tls.so] tls_config.o
CC (gcc) [M tls.so] tls_ct_wrq.o
CC (gcc) [M tls.so] tls_domain.o
CC (gcc) [M tls.so] tls_dump_vf.o
CC (gcc) [M tls.so] tls_init.o
CC (gcc) [M tls.so] tls_locking.o
CC (gcc) [M tls.so] tls_map.o
CC (gcc) [M tls.so] tls_mod.o
CC (gcc) [M tls.so] tls_rand.o
CC (gcc) [M tls.so] tls_rpc.o
CC (gcc) [M tls.so] tls_select.o
CC (gcc) [M tls.so] tls_server.o
CC (gcc) [M tls.so] tls_util.o
CC (gcc) [M tls.so] tls_verify.o
LD (gcc) [M tls.so] tls.so
CC (gcc) [M auth_identity.so] auth_crypt.o
auth_crypt.c: In function 'rsa_sha1_enc':
auth_crypt.c:214:9: warning: 'RSA_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
214 | if(RSA_sign(NID_sha1, sstrcrypted, sizeof sstrcrypted,
| ^~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_crypt.c:33:
/usr/include/openssl/rsa.h:356:27: note: declared here
356 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m,
| ^~~~~~~~
auth_crypt.c: In function 'rsa_sha1_dec':
auth_crypt.c:258:9: warning: 'EVP_PKEY_get1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
258 | hpubkey = EVP_PKEY_get1_RSA(pkey);
| ^~~~~~~
In file included from /usr/include/openssl/pem.h:22,
from auth_crypt.c:33:
/usr/include/openssl/evp.h:1359:16: note: declared here
1359 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~
auth_crypt.c:266:9: warning: 'RSA_verify' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
266 | if(RSA_verify(NID_sha1, (unsigned char *)ssha, sshasize,
| ^~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_crypt.c:33:
/usr/include/openssl/rsa.h:359:27: note: declared here
359 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m,
| ^~~~~~~~~~
auth_crypt.c:273:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
273 | RSA_free(hpubkey);
| ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_crypt.c:33:
/usr/include/openssl/rsa.h:301:28: note: declared here
301 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
auth_crypt.c:298:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
298 | RSA_free(hpubkey);
| ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_crypt.c:33:
/usr/include/openssl/rsa.h:301:28: note: declared here
301 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
CC (gcc) [M auth_identity.so] auth_dynstr.o
CC (gcc) [M auth_identity.so] auth_hdrs.o
CC (gcc) [M auth_identity.so] auth_http.o
CC (gcc) [M auth_identity.so] auth_identity.o
auth_identity.c: In function 'mod_init':
auth_identity.c:414:9: warning: 'PEM_read_RSAPrivateKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
414 | glb_hmyprivkey = PEM_read_RSAPrivateKey(hpemfile, NULL, NULL, NULL);
| ^~~~~~~~~~~~~~
In file included from auth_identity.c:43:
/usr/include/openssl/pem.h:447:1: note: declared here
447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
| ^~~~~~~~~~~~~~~~~~~~~~
auth_identity.c:425:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
425 | if(initdynstr(&glb_encedmsg, RSA_size(glb_hmyprivkey)))
| ^~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_identity.c:43:
/usr/include/openssl/rsa.h:212:27: note: declared here
212 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
| ^~~~~~~~
auth_identity.c:429:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
429 | if(initdynstr(&glb_b64encedmsg, (RSA_size(glb_hmyprivkey) / 3 + 1) * 4))
| ^~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from auth_identity.c:43:
/usr/include/openssl/rsa.h:212:27: note: declared here
212 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
| ^~~~~~~~
CC (gcc) [M auth_identity.so] auth_tables.o
LD (gcc) [M auth_identity.so] auth_identity.so
CC (gcc) [M db_unixodbc.so] connection.o
CC (gcc) [M db_unixodbc.so] db_unixodbc.o
CC (gcc) [M db_unixodbc.so] dbase.o
CC (gcc) [M db_unixodbc.so] list.o
CC (gcc) [M db_unixodbc.so] res.o
CC (gcc) [M db_unixodbc.so] row.o
CC (gcc) [M db_unixodbc.so] val.o
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3647
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3647(a)github.com>