|
@@ -11,9 +11,9 @@
|
|
<!-- Module User's Guide -->
|
|
<!-- Module User's Guide -->
|
|
|
|
|
|
<chapter>
|
|
<chapter>
|
|
-
|
|
|
|
|
|
+
|
|
<title>&adminguide;</title>
|
|
<title>&adminguide;</title>
|
|
-
|
|
|
|
|
|
+
|
|
<section>
|
|
<section>
|
|
<title>Overview</title>
|
|
<title>Overview</title>
|
|
<para>
|
|
<para>
|
|
@@ -80,7 +80,7 @@
|
|
</section>
|
|
</section>
|
|
<section>
|
|
<section>
|
|
<title>Parameters</title>
|
|
<title>Parameters</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.p.load">
|
|
<title><varname>load</varname> (string)</title>
|
|
<title><varname>load</varname> (string)</title>
|
|
<para>
|
|
<para>
|
|
Set the path to the Lua script to be loaded at startup. Then you
|
|
Set the path to the Lua script to be loaded at startup. Then you
|
|
@@ -102,7 +102,7 @@ modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.p.register">
|
|
<title><varname>register</varname> (string)</title>
|
|
<title><varname>register</varname> (string)</title>
|
|
<para>
|
|
<para>
|
|
Use this function to register optional SIP Router submodules
|
|
Use this function to register optional SIP Router submodules
|
|
@@ -249,7 +249,7 @@ modparam("app_lua", "register", "sl")
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.p.reload">
|
|
<title><varname>reload</varname> (boolean)</title>
|
|
<title><varname>reload</varname> (boolean)</title>
|
|
<para>
|
|
<para>
|
|
If reload is 1 enables the ability to reload the
|
|
If reload is 1 enables the ability to reload the
|
|
@@ -271,10 +271,10 @@ modparam("app_lua", "reload", 1)
|
|
</section>
|
|
</section>
|
|
|
|
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
|
|
+
|
|
<section>
|
|
<section>
|
|
<title>Functions</title>
|
|
<title>Functions</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.f.lua_dotfile">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">lua_dofile(path)</function>
|
|
<function moreinfo="none">lua_dofile(path)</function>
|
|
</title>
|
|
</title>
|
|
@@ -291,8 +291,8 @@ lua_dofile("/usr/local/etc/kamailio/lua/myscript.lua");
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
- <section>
|
|
|
|
|
|
+
|
|
|
|
+ <section id="app_lua.f.lua_dostring">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">lua_dostring(script)</function>
|
|
<function moreinfo="none">lua_dostring(script)</function>
|
|
</title>
|
|
</title>
|
|
@@ -313,7 +313,7 @@ if(!lua_dostring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.f.lua_run">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">lua_run(function, params)</function>
|
|
<function moreinfo="none">lua_run(function, params)</function>
|
|
</title>
|
|
</title>
|
|
@@ -338,7 +338,7 @@ lua_run("lua_funcx", "$rU", "2");
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.f.lua_runstring">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">lua_runstring(script)</function>
|
|
<function moreinfo="none">lua_runstring(script)</function>
|
|
</title>
|
|
</title>
|
|
@@ -359,12 +359,12 @@ if(!lua_runstring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
|
|
+
|
|
</section>
|
|
</section>
|
|
|
|
|
|
<section>
|
|
<section>
|
|
<title>Exported RPC Commands</title>
|
|
<title>Exported RPC Commands</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.r.list">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">app_lua.list</function>
|
|
<function moreinfo="none">app_lua.list</function>
|
|
</title>
|
|
</title>
|
|
@@ -383,7 +383,7 @@ if(!lua_runstring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
|
|
&sercmd; app_lua.lists
|
|
&sercmd; app_lua.lists
|
|
</programlisting>
|
|
</programlisting>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="app_lua.r.reload">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">app_lua.reload</function>
|
|
<function moreinfo="none">app_lua.reload</function>
|
|
</title>
|
|
</title>
|