Module: kamailio
Branch: master
Commit: e038a2122d9ed5858bbafc088f3cfc18666b95fd
URL:
https://github.com/kamailio/kamailio/commit/e038a2122d9ed5858bbafc088f3cfc1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-07-11T09:50:13+02:00
app_perl: docs for warn_mode parameter
---
Modified: src/modules/app_perl/doc/app_perl_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/e038a2122d9ed5858bbafc088f3cfc1…
Patch:
https://github.com/kamailio/kamailio/commit/e038a2122d9ed5858bbafc088f3cfc1…
---
diff --git a/src/modules/app_perl/doc/app_perl_admin.xml
b/src/modules/app_perl/doc/app_perl_admin.xml
index aad43c2348..22b8c10308 100644
--- a/src/modules/app_perl/doc/app_perl_admin.xml
+++ b/src/modules/app_perl/doc/app_perl_admin.xml
@@ -259,6 +259,25 @@ modparam("app_perl", "perl_destroy_func",
"my_perl_destroy")
...
modparam("app_perl", "parse_mode", 1)
...
+</programlisting>
+ </example>
+ </section>
+ <section id="app_perl.p.warn_mode">
+ <title><varname>warn_mode</varname> (int)</title>
+ <para>
+ Allows to enable warning for perl_parse(). If set to 1, "-w" is
+ passed to perl_parse() and detected warnings in the Perl script
+ should be printed to the log.
+ </para>
+ <para>
+ Default value is <emphasis>0</emphasis>.
+ </para>
+ <example>
+ <title>Set <varname>warn_mode</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("app_perl", "warn_mode", 1)
+...
</programlisting>
</example>
</section>