Module: kamailio
Branch: 6.0
Commit: f07bc9ef61b9eaecb528e57ee0228d0e690f16af
URL: 
https://github.com/kamailio/kamailio/commit/f07bc9ef61b9eaecb528e57ee0228d0e690f16af

Author: Kamailio Dev <kamailio....@kamailio.org>
Committer: Kamailio Dev <kamailio....@kamailio.org>
Date: 2025-03-04T17:46:19+01:00

modules: readme files regenerated - modules ... [skip ci]

---

Modified: src/modules/app_python3s/README
Modified: src/modules/auth/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/f07bc9ef61b9eaecb528e57ee0228d0e690f16af.diff
Patch: 
https://github.com/kamailio/kamailio/commit/f07bc9ef61b9eaecb528e57ee0228d0e690f16af.patch

---

diff --git a/src/modules/app_python3s/README b/src/modules/app_python3s/README
index 5b8d663797a..af38af3e8e0 100644
--- a/src/modules/app_python3s/README
+++ b/src/modules/app_python3s/README
@@ -28,6 +28,7 @@ Daniel-Constantin Mierla
               3.1. load (string)
               3.2. script_init (string)
               3.3. script_child_init (string)
+              3.4. threads_mode (int)
 
         4. Functions
 
@@ -45,7 +46,8 @@ Daniel-Constantin Mierla
    1.1. Set load parameter
    1.2. Set script_init parameter
    1.3. Set script_child_init parameter
-   1.4. app_python3s_exec usage
+   1.4. Set threads_mode parameter
+   1.5. app_python3s_exec usage
 
 Chapter 1. Admin Guide
 
@@ -62,6 +64,7 @@ Chapter 1. Admin Guide
         3.1. load (string)
         3.2. script_init (string)
         3.3. script_child_init (string)
+        3.4. threads_mode (int)
 
    4. Functions
 
@@ -118,6 +121,7 @@ Chapter 1. Admin Guide
    3.1. load (string)
    3.2. script_init (string)
    3.3. script_child_init (string)
+   3.4. threads_mode (int)
 
 3.1. load (string)
 
@@ -163,6 +167,20 @@ def ksr_script_child_init():
     return 1
 ...
 
+3.4. threads_mode (int)
+
+   Control how locking for Python interpreter threads in done. If set to
+   1, use Py_BLOCK_THREADS/Py_UNBLOCK_THREADS (new mode added for v6.0.x).
+   If set to 0, use PyGILState_Ensure()/PyGILState_Release() (the mode
+   implemented initially).
+
+   Default value is “0”.
+
+   Example 1.4. Set threads_mode parameter
+...
+modparam("app_python3s", "threads_mode", 1)
+...
+
 4. Functions
 
    4.1. app_python3s_exec(method [, param])
@@ -175,7 +193,7 @@ def ksr_script_child_init():
 
    Both parameters can contain pseudo-variables.
 
-   Example 1.4. app_python3s_exec usage
+   Example 1.5. app_python3s_exec usage
 ...
 app_python3s_exec("my_python_function");
 app_python3s_exec("my_python_function", "my_params");
diff --git a/src/modules/auth/README b/src/modules/auth/README
index 826c0b04dcc..193f91e0ef5 100644
--- a/src/modules/auth/README
+++ b/src/modules/auth/README
@@ -86,7 +86,7 @@ Daniel-Constantin Mierla
    1.23. pv_www_authenticate usage
    1.24. pv_proxy_authenticate usage
    1.25. pv_auth_check usage
-   1.26. auth_get_www_authenticate
+   1.26. auth_get_www_authenticate usage
    1.27. auth_algorithm example
 
 Chapter 1. Admin Guide
@@ -924,7 +924,7 @@ if (!pv_auth_check("$fd", "$avp(password)", "0", "1")) {
 
    This function can be used from ANY_ROUTE.
 
-   Example 1.26. auth_get_www_authenticate
+   Example 1.26. auth_get_www_authenticate usage
 ...
 if (auth_get_www_authenticate("$fd", "0", "$var(wauth)")) {
         xlog("www authenticate header is [$var(wauth)]\n");
@@ -939,5 +939,14 @@ if (auth_get_www_authenticate("$fd", "0", "$var(wauth)")) {
 
    Example 1.27. auth_algorithm example
 ...
-auth_algorithm("$alg");
+if($fU == "alice") {
+    $var(alg) = "SHA-256";
+} else {
+    $var(alg) = "MD5";
+}
+auth_algorithm("$var(alg)");
+if (!auth_check("$fd", "subscriber", "1")) {
+    auth_challenge("$fd", "1");
+    exit;
+}
 ...

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to