Module: kamailio
Branch: master
Commit: 0bc30ab5b54a9450552a968bdcdff8f39830733b
URL:
https://github.com/kamailio/kamailio/commit/0bc30ab5b54a9450552a968bdcdff8f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-25T09:36:19+01:00
app_jsdt: docs for mode parameter
---
Modified: src/modules/app_jsdt/doc/app_jsdt_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/0bc30ab5b54a9450552a968bdcdff8f…
Patch:
https://github.com/kamailio/kamailio/commit/0bc30ab5b54a9450552a968bdcdff8f…
---
diff --git a/src/modules/app_jsdt/doc/app_jsdt_admin.xml
b/src/modules/app_jsdt/doc/app_jsdt_admin.xml
index d4fd89d377..4c3a746b9b 100644
--- a/src/modules/app_jsdt/doc/app_jsdt_admin.xml
+++ b/src/modules/app_jsdt/doc/app_jsdt_admin.xml
@@ -17,7 +17,7 @@
<section>
<title>Overview</title>
<para>
- This module allows executing JavaScript scripts from the Kamailio
+ This module allows executing JavaScript scripts from the Kamailio
configuration file.
It exports all KEMI functions to JavaScript in order to access the
currently processed SIP message. These functions are named within
@@ -107,7 +107,26 @@ modparam("app_jsdt", "load",
"/usr/local/etc/kamailio/js/myscript.js")
</programlisting>
</example>
</section>
-
+ <section id="app_jsdt.p.mode">
+ <title><varname>mode</varname> (int)</title>
+ <para>
+ Control if the API to load JavaScript module (nodejs interface) is
+ initialized or not.
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>1</quote> (initialize).
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>mode</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("app_jsdt", "mode", 0)
+...
+</programlisting>
+ </example>
+ </section>
</section>
<section>