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>