Module: kamailio
Branch: master
Commit: 40b7fa59c739275f1e8a3d35c71f5251695af6e9
URL:
https://github.com/kamailio/kamailio/commit/40b7fa59c739275f1e8a3d35c71f525…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-15T13:03:14+02:00
app_lua: defaut value for reload parameter set to 1
- reload feature enabbled by default, set to 0 to disable
---
Modified: src/modules/app_lua/app_lua_api.c
Modified: src/modules/app_lua/doc/app_lua_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/40b7fa59c739275f1e8a3d35c71f525…
Patch:
https://github.com/kamailio/kamailio/commit/40b7fa59c739275f1e8a3d35c71f525…
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index 575ee4454b..7f0fd1fbc0 100644
--- a/src/modules/app_lua/app_lua_api.c
+++ b/src/modules/app_lua/app_lua_api.c
@@ -44,7 +44,7 @@
* reload enabled param
* default: 0 (off)
*/
-static unsigned int _app_lua_sr_reload = 0;
+static unsigned int _app_lua_sr_reload = 1;
/**
*
*/
diff --git a/src/modules/app_lua/doc/app_lua_admin.xml
b/src/modules/app_lua/doc/app_lua_admin.xml
index 915fe97745..45ed3e29c1 100644
--- a/src/modules/app_lua/doc/app_lua_admin.xml
+++ b/src/modules/app_lua/doc/app_lua_admin.xml
@@ -271,18 +271,19 @@ modparam("app_lua", "register", "sl")
<title><varname>reload</varname> (boolean)</title>
<para>
If reload is 1 enables the ability to reload the
- scripts using the RPC app_lua.reload command.
+ scripts using the RPC app_lua.reload command. To disable reload
+ feature, set this parameter to 0.
</para>
<para>
<emphasis>
- Default value is <quote>0 (off)</quote>.
+ Default value is <quote>1 (on)</quote>.
</emphasis>
</para>
<example>
<title>Set <varname>reload</varname> parameter</title>
<programlisting format="linespecific">
...
-modparam("app_lua", "reload", 1)
+modparam("app_lua", "reload", 0)
...
</programlisting>
</example>