[sr-dev] git:master: app_lua: sync'ed the list of exported modules to lua

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 10 12:53:49 CET 2012


Module: sip-router
Branch: master
Commit: 098d93bd5c498df561fd514f0d73f0369d7cac7c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=098d93bd5c498df561fd514f0d73f0369d7cac7c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jan 10 12:11:48 2012 +0100

app_lua: sync'ed the list of exported modules to lua

---

 modules/app_lua/README                |   32 ++++++++++++----
 modules/app_lua/doc/app_lua_admin.xml |   64 +++++++++++++++++++++++++++++++-
 2 files changed, 86 insertions(+), 10 deletions(-)

diff --git a/modules/app_lua/README b/modules/app_lua/README
index 78bb655..d12b846 100644
--- a/modules/app_lua/README
+++ b/modules/app_lua/README
@@ -10,7 +10,7 @@ Daniel-Constantin Mierla
 
    <miconda at gmail.com>
 
-   Copyright © 2010 Daniel-Constantin Mierla (asipto.com)
+   Copyright © 2010 Daniel-Constantin Mierla (asipto.com)
      __________________________________________________________________
 
    Table of Contents
@@ -116,7 +116,7 @@ Chapter 1. Admin Guide
    use lua_run(function, params) to execute a function from the script at
    runtime.
 
-   Default value is “null”.
+   Default value is "null".
 
    Example 1.1. Set load parameter
 ...
@@ -127,24 +127,40 @@ modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
 
    Use this function to register optional SIP Router submodules to Lua.
    Available submodules are:
+     * alias_db - register functions from alias_db module under
+       'sr.alias_db'.
      * auth - register functions from auth module under 'sr.auth'.
      * auth_db - register functions from auth_db module under
        'sr.auth_db'.
      * dispatcher - register functions from dispatcher module under
        'sr.dispatcher'.
      * maxfwd - register functions from maxfwd module under 'sr.maxfwd'.
+     * msilo - register functions from msilo module under 'sr.msilo'.
+     * presence - register functions from presence module under
+       'sr.presence'.
+     * presence_xml - register functions from presence_xml module under
+       'sr.presence_xml'.
+     * pua_usrloc - register functions from pua_usrloc module under
+       'sr.pua_usrloc'.
      * registrar - register functions from registrar module under
        'sr.registrar'.
+     * rls - register functions from rls module under 'sr.rls'.
      * rr - register functions from rr module under 'sr.rr'.
-     * sqlops - register functions from sqlops module under 'sr.sqlops'.
+     * sanity - register functions from sanity module under 'sr.sanity'.
+     * sdpops - register functions from sdpops module under 'sr.sdpops'.
+     * siputils - register functions from siputils module under
+       'sr.siputils'.
      * sl - register functions from sl module under 'sr.sl'.
+     * sqlops - register functions from sqlops module under 'sr.sqlops'.
+     * textops - register functions from textops module under
+       'sr.textops'.
      * tm - register functions from tm module under 'sr.tm'.
      * xhttp - register functions from xhttp module under 'sr.xhttp'.
 
    Note that 'sr', 'sr.hdr' and 'sr.pv' modules are always registered to
    Lua.
 
-   Default value is “null”.
+   Default value is "null".
 
    Example 1.2. Set register parameter
 ...
@@ -158,7 +174,7 @@ modparam("app_lua", "register", "sl")
    4.3. lua_run(function, params)
    4.4. lua_runstring(script)
 
-4.1.  lua_dofile(path)
+4.1. lua_dofile(path)
 
    Execute the Lua script stored in 'path'. The parameter can be a string
    with pseudo-variables evaluated at runtime.
@@ -168,7 +184,7 @@ modparam("app_lua", "register", "sl")
 lua_dofile("/usr/local/etc/kamailio/lua/myscript.lua");
 ...
 
-4.2.  lua_dostring(script)
+4.2. lua_dostring(script)
 
    Execute the Lua script stored in parameter. The parameter can be a
    string with pseudo-variables.
@@ -181,7 +197,7 @@ if(!lua_dostring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
 }
 ...
 
-4.3.  lua_run(function, params)
+4.3. lua_run(function, params)
 
    Execute the Lua function 'func' giving params as parameters. There can
    be up to 3 string parameters. The function must exist in the script
@@ -198,7 +214,7 @@ if(!lua_run("sr_append_fu_to_reply"))
 lua_run("lua_funcx", "$rU", "2");
 ...
 
-4.4.  lua_runstring(script)
+4.4. lua_runstring(script)
 
    Execute the Lua script stored in parameter. The parameter can be a
    string with pseudo-variables. The script is executed in Lua context
diff --git a/modules/app_lua/doc/app_lua_admin.xml b/modules/app_lua/doc/app_lua_admin.xml
index 5bd6ae4..96e5771 100644
--- a/modules/app_lua/doc/app_lua_admin.xml
+++ b/modules/app_lua/doc/app_lua_admin.xml
@@ -111,6 +111,12 @@ modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
 	    	<itemizedlist>
 		    <listitem>
 			<para>
+				<emphasis>alias_db</emphasis> - register functions from
+				alias_db module under 'sr.alias_db'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
 				<emphasis>auth</emphasis> - register functions from auth module
 				under 'sr.auth'.
 			</para>
@@ -135,20 +141,62 @@ modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
 		    </listitem>
 		    <listitem>
 			<para>
+				<emphasis>msilo</emphasis> - register functions from
+				msilo module under 'sr.msilo'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>presence</emphasis> - register functions from
+				presence module under 'sr.presence'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>presence_xml</emphasis> - register functions from
+				presence_xml module under 'sr.presence_xml'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>pua_usrloc</emphasis> - register functions from
+				pua_usrloc module under 'sr.pua_usrloc'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
 				<emphasis>registrar</emphasis> - register functions from
 				registrar module under 'sr.registrar'.
 			</para>
 		    </listitem>
 		    <listitem>
 			<para>
+				<emphasis>rls</emphasis> - register functions from
+				rls module under 'sr.rls'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
 				<emphasis>rr</emphasis> - register functions from rr module
 				under 'sr.rr'.
 			</para>
 		    </listitem>
 		    <listitem>
 			<para>
-				<emphasis>sqlops</emphasis> - register functions from sqlops
-				module under 'sr.sqlops'.
+				<emphasis>sanity</emphasis> - register functions from sanity
+				module under 'sr.sanity'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>sdpops</emphasis> - register functions from
+				sdpops module under 'sr.sdpops'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>siputils</emphasis> - register functions from
+				siputils module under 'sr.siputils'.
 			</para>
 		    </listitem>
 		    <listitem>
@@ -159,6 +207,18 @@ modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
 		    </listitem>
 		    <listitem>
 			<para>
+				<emphasis>sqlops</emphasis> - register functions from sqlops
+				module under 'sr.sqlops'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
+				<emphasis>textops</emphasis> - register functions from
+				textops module under 'sr.textops'.
+			</para>
+		    </listitem>
+		    <listitem>
+			<para>
 				<emphasis>tm</emphasis> - register functions from tm module
 				under 'sr.tm'.
 			</para>




More information about the sr-dev mailing list