Module: kamailio
Branch: master
Commit: e51fa240a0b8a39757c42f62fbdba21b3c1a2a11
URL: https://github.com/kamailio/kamailio/commit/e51fa240a0b8a39757c42f62fbdba21…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-09-24T10:46:17+02:00
modules: readme files regenerated - sworker ... [skip ci]
---
Modified: src/modules/sworker/README
---
Diff: https://github.com/kamailio/kamailio/commit/e51fa240a0b8a39757c42f62fbdba21…
Patch: https://github.com/kamailio/kamailio/commit/e51fa240a0b8a39757c42f62fbdba21…
---
diff --git a/src/modules/sworker/README b/src/modules/sworker/README
index c5d571a179..d4aa30b864 100644
--- a/src/modules/sworker/README
+++ b/src/modules/sworker/README
@@ -23,15 +23,20 @@ Daniel-Constantin Mierla
2.1. Kamailio Modules
2.2. External Libraries or Applications
- 3. Functions
+ 3. Parameters
- 3.1. sworker_active()
- 3.2. swork_task(gname)
+ 3.1. xdata (str)
+
+ 4. Functions
+
+ 4.1. sworker_active()
+ 4.2. swork_task(gname)
List of Examples
- 1.1. sworker_active() usage
- 1.2. sworker_task() usage
+ 1.1. xdata usage
+ 1.2. sworker_active() usage
+ 1.3. sworker_task() usage
Chapter 1. Admin Guide
@@ -43,10 +48,14 @@ Chapter 1. Admin Guide
2.1. Kamailio Modules
2.2. External Libraries or Applications
- 3. Functions
+ 3. Parameters
+
+ 3.1. xdata (str)
- 3.1. sworker_active()
- 3.2. swork_task(gname)
+ 4. Functions
+
+ 4.1. sworker_active()
+ 4.2. swork_task(gname)
1. Overview
@@ -81,19 +90,39 @@ Chapter 1. Admin Guide
running Kamailio with this module loaded:
* None
-3. Functions
+3. Parameters
+
+ 3.1. xdata (str)
+
+3.1. xdata (str)
+
+ Name of a script variable from where to take additional data to be
+ passed to special worker along with the SIP message. Same variable will
+ be set by the special worker, therefore it has to be a writable
+ variable. Moreover, it must be a variable that can be set without the
+ SIP message structure, like $var(name), otherwise it can lead to a
+ crash.
+
+ Default value: not set.
+
+ Example 1.1. xdata usage
+...
+modparam("sworker", "xdata", "$var(xdata)")
+...
+
+4. Functions
- 3.1. sworker_active()
- 3.2. swork_task(gname)
+ 4.1. sworker_active()
+ 4.2. swork_task(gname)
-3.1. sworker_active()
+4.1. sworker_active()
Return 1 (true) if the processing happens in an asyn process, or -1
(false) if the processing is happening in a SIP receiving process.
This function can be used from REQUEST_ROUTE|CORE_REPLY_ROUTE.
- Example 1.1. sworker_active() usage
+ Example 1.2. sworker_active() usage
...
request_route {
...
@@ -103,7 +132,7 @@ request_route {
}
...
-3.2. swork_task(gname)
+4.2. swork_task(gname)
Delegate the processing of SIP message to a group of async workers. The
function is restricted to be used inside event_route[core:pre-routing].
@@ -119,7 +148,7 @@ request_route {
This function can be used from REQUEST_ROUTE|CORE_REPLY_ROUTE.
- Example 1.2. sworker_task() usage
+ Example 1.3. sworker_task() usage
...
event_route[core:pre-routing] {
if(sworker_task("default")) {
Hello,
I am planning to release in two weeks (likely on Wednesday 7th October) the next minor version out of branch 5.3, version 5.3.9.
Backports of fixed issues from other stable branches will be integrated as usual.
If you are aware of new issues which were not yet reported on the issue tracker or are missing back-ports, report them.
Please note that this will be the last minor release created from the 5.3.x stable branch.
The stable branches are usually maintained from the Kamailio development team for a period of two years. The other two stable branches of Kamailio will still be maintained (5.4.x and 5.5.x).
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
Module: kamailio
Branch: master
Commit: e41d23e2955ab9e311f4292b6ffe58e4e4a4432b
URL: https://github.com/kamailio/kamailio/commit/e41d23e2955ab9e311f4292b6ffe58e…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-09-23T09:46:23+02:00
modules: readme files regenerated - posops ... [skip ci]
---
Modified: src/modules/posops/README
---
Diff: https://github.com/kamailio/kamailio/commit/e41d23e2955ab9e311f4292b6ffe58e…
Patch: https://github.com/kamailio/kamailio/commit/e41d23e2955ab9e311f4292b6ffe58e…
---
diff --git a/src/modules/posops/README b/src/modules/posops/README
index 319e654c50..d5f49f0cbb 100644
--- a/src/modules/posops/README
+++ b/src/modules/posops/README
@@ -39,6 +39,8 @@ Daniel-Constantin Mierla
4.7. pos_body_end()
4.8. pos_find_str(idx, val)
4.9. pos_findi_str(idx, val)
+ 4.10. pos_rfind_str(idx, val)
+ 4.11. pos_rfindi_str(idx, val)
List of Examples
@@ -52,6 +54,8 @@ Daniel-Constantin Mierla
1.8. pos_body_end() usage
1.9. pos_find_str() usage
1.10. pos_findi_str() usage
+ 1.11. pos_find_str() usage
+ 1.12. pos_rfindi_str() usage
Chapter 1. Admin Guide
@@ -78,6 +82,8 @@ Chapter 1. Admin Guide
4.7. pos_body_end()
4.8. pos_find_str(idx, val)
4.9. pos_findi_str(idx, val)
+ 4.10. pos_rfind_str(idx, val)
+ 4.11. pos_rfindi_str(idx, val)
1. Overview
@@ -132,6 +138,8 @@ modparam("posops", "idx0", -200)
4.7. pos_body_end()
4.8. pos_find_str(idx, val)
4.9. pos_findi_str(idx, val)
+ 4.10. pos_rfind_str(idx, val)
+ 4.11. pos_rfindi_str(idx, val)
4.1. pos_append(idx, val)
@@ -236,7 +244,9 @@ $var(pos) = pos_body_end();
case of not finding it or error, the return code is negative. If val is
at index 0, it returns the value specified by modparam idx0.
- The idx can be an integer value or a variable holding an integer.
+ The idx can be an integer value or a variable holding an integer. If
+ the value is negative, the position is counted from the end of the
+ buffer.
The val can be a static string or variables.
@@ -254,7 +264,9 @@ $var(idx) = pos_find_str("100", "kamailio");
code is negative. If val is at index 0, it returns the value specified
by modparam idx0.
- The idx can be an integer value or a variable holding an integer.
+ The idx can be an integer value or a variable holding an integer. If
+ the value is negative, the position is counted from the end of the
+ buffer.
The val can be a static string or variables.
@@ -264,3 +276,43 @@ $var(idx) = pos_find_str("100", "kamailio");
...
$var(idx) = pos_findi_str("100", "kamailio");
...
+
+4.10. pos_rfind_str(idx, val)
+
+ Return the last position of the val in message buffer starting at idx
+ (reverse search). In case of not finding it or error, the return code
+ is negative. If val is at index 0, it returns the value specified by
+ modparam idx0.
+
+ The idx can be an integer value or a variable holding an integer. If
+ the value is negative, the position is counted from the end of the
+ buffer.
+
+ The val can be a static string or variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.11. pos_find_str() usage
+...
+$var(idx) = pos_rfind_str("100", "kamailio");
+...
+
+4.11. pos_rfindi_str(idx, val)
+
+ Return the last position of the val (matching case insensitive) in
+ message buffer starting at idx (reverse search). In case of not finding
+ it or error, the return code is negative. If val is at index 0, it
+ returns the value specified by modparam idx0.
+
+ The idx can be an integer value or a variable holding an integer. If
+ the value is negative, the position is counted from the end of the
+ buffer.
+
+ The val can be a static string or variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.12. pos_rfindi_str() usage
+...
+$var(idx) = pos_rfindi_str("100", "kamailio");
+...