Module: kamailio
Branch: master
Commit: 5ac41325edcc323684bae5bfc8bd1c4617571553
URL:
https://github.com/kamailio/kamailio/commit/5ac41325edcc323684bae5bfc8bd1c4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-02-25T09:46:16+01:00
modules: readme files regenerated - app_jsdt ... [skip ci]
---
Modified: src/modules/app_jsdt/README
---
Diff:
https://github.com/kamailio/kamailio/commit/5ac41325edcc323684bae5bfc8bd1c4…
Patch:
https://github.com/kamailio/kamailio/commit/5ac41325edcc323684bae5bfc8bd1c4…
---
diff --git a/src/modules/app_jsdt/README b/src/modules/app_jsdt/README
index 4186cced58..dc8c13bda8 100644
--- a/src/modules/app_jsdt/README
+++ b/src/modules/app_jsdt/README
@@ -26,6 +26,7 @@ Daniel-Constantin Mierla
3. Parameters
3.1. load (str)
+ 3.2. mode (int)
4. Functions
@@ -44,10 +45,11 @@ Daniel-Constantin Mierla
List of Examples
1.1. Set load parameter
- 1.2. jsdt_dofile usage
- 1.3. jsdt_dostring usage
- 1.4. jsdt_run usage
- 1.5. jsdt_runstring usage
+ 1.2. Set mode parameter
+ 1.3. jsdt_dofile usage
+ 1.4. jsdt_dostring usage
+ 1.5. jsdt_run usage
+ 1.6. jsdt_runstring usage
Chapter 1. Admin Guide
@@ -62,6 +64,7 @@ Chapter 1. Admin Guide
3. Parameters
3.1. load (str)
+ 3.2. mode (int)
4. Functions
@@ -119,6 +122,7 @@ Chapter 1. Admin Guide
3. Parameters
3.1. load (str)
+ 3.2. mode (int)
3.1. load (str)
@@ -134,6 +138,18 @@ Chapter 1. Admin Guide
modparam("app_jsdt", "load",
"/usr/local/etc/kamailio/js/myscript.js")
...
+3.2. mode (int)
+
+ Control if the API to load JavaScript module (nodejs interface) is
+ initialized or not.
+
+ Default value is “1” (initialize).
+
+ Example 1.2. Set mode parameter
+...
+modparam("app_jsdt", "mode", 0)
+...
+
4. Functions
4.1. jsdt_dofile(path)
@@ -146,7 +162,7 @@ modparam("app_jsdt", "load",
"/usr/local/etc/kamailio/js/myscript.js")
Execute the JavaScript script stored in 'path'. The parameter can be a
string with pseudo-variables evaluated at runtime.
- Example 1.2. jsdt_dofile usage
+ Example 1.3. jsdt_dofile usage
...
jsdt_dofile("/usr/local/etc/kamailio/js/myscript.js");
...
@@ -156,7 +172,7 @@ jsdt_dofile("/usr/local/etc/kamailio/js/myscript.js");
Execute the JavaScript script stored in parameter. The parameter can be
a string with pseudo-variables.
- Example 1.3. jsdt_dostring usage
+ Example 1.4. jsdt_dostring usage
...
if(!jsdt_dostring('KSR.dbg("test message\n")'))
{
@@ -171,7 +187,7 @@ if(!jsdt_dostring('KSR.dbg("test message\n")'))
loaded at startup via parameter 'load'. Parameters can be strings with
pseudo-variables that are evaluated at runtime.
- Example 1.4. jsdt_run usage
+ Example 1.5. jsdt_run usage
...
if(!jsdt_run("js_append_fu_to_reply"))
{
@@ -187,7 +203,7 @@ jsdt_run("js_funcx", "$rU", "2");
string with pseudo-variables. The script is executed in JS context
specific to loaded JS files at startup.
- Example 1.5. jsdt_runstring usage
+ Example 1.6. jsdt_runstring usage
...
if(!jsdt_runstring('KSR.dbg("Hello World from $fU\n")'))
{