Module: kamailio
Branch: master
Commit: d3900987ddd012a192c4a429b29ac8d4e24587c5
URL:
https://github.com/kamailio/kamailio/commit/d3900987ddd012a192c4a429b29ac8d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-20T16:15:27+01:00
pvtpl: docs - section for template file
---
Modified: src/modules/pvtpl/doc/pvtpl_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/d3900987ddd012a192c4a429b29ac8d…
Patch:
https://github.com/kamailio/kamailio/commit/d3900987ddd012a192c4a429b29ac8d…
---
diff --git a/src/modules/pvtpl/doc/pvtpl_admin.xml
b/src/modules/pvtpl/doc/pvtpl_admin.xml
index 8ca0174d3c4..25459ac1139 100644
--- a/src/modules/pvtpl/doc/pvtpl_admin.xml
+++ b/src/modules/pvtpl/doc/pvtpl_admin.xml
@@ -120,11 +120,35 @@ modparam("pvtpl", "tpl",
"name=tpl2;fpath=/etc/kamailio/tpl2.pvtpl;bsize=256;")
<title><function>pvtpl_render</function> usage</title>
<programlisting format="linespecific">
...
-pvtpl_render("t1", "$var(out)")
+pvtpl_render("t1", "$var(out)");
...
</programlisting>
</example>
</section>
</section>
+ <section>
+ <title>Template File</title>
+ <para>
+ The template file can contain text and config variables that are evaluate
+ when running pvtpl_render() functions.
+ </para>
+ <para>
+ The templates files are loaded at startup and prepared for runtime. It is
+ no option to reload the template files.
+ </para>
+ <example>
+ <title>Template file</title>
+ <programlisting format="linespecific">
+...
+{
+ "from": "$fu",
+ "to": "$tu",
+ "x" : $var(x)
+}
+...
+</programlisting>
+ </example>
+
+ </section>
</chapter>