LogicApp Configuration

LogicApp Configuration

The core of an N2IWF deployment is a configured N2SVCD LogicApp instance.

LogicApp Configuration for CAMEL Call Control

The base of an example N2IWF LogicApp configuration for call control via CAMEL might include:

<application name="N2IWF-Logic" module="LogicApp">
    ...
    <config>
        <services>
            <service module="LhoScpApp::LhoScpLuaService"
                     libs="../../n2scp/apps/lho_scp/lib"
                     script_dir="../../n2iwf/lua/svc/"
                     lua_lib_path="../lua/lib/?.lua;../../n2iwf/lua/lib/?.lua;../../n2iwf/lua/svc/scp/?.lua;../../n2scp/lua/lib/?.lua;../../n2cug/lua/lib/?.lua">
                <triggers>
                    <trigger script_key="iwf_svc"/>
                </triggers>
                ...
            </service>
        </services>
        ...
    </config>
</application>

The following points are relevant to LogicApp configuration for N2IWF:

Lua Library Paths

For the lua_lib_path parameter in the LogicApp service, the following guidelines apply:

Compiled Lua

Any Lua libraries, both supplied by N-Squared and custom, may be pre-compiled by using the Lua compiler utility. If this is done, ensure that the lua_lib_path is updated to reflect the appropriate file suffix (.lc) as generated by the compiler.

LogicApp Configuration for Diameter -> Diameter IWF

The base of an example N2IWF LogicApp configuration for receiving inbound Diameter messages for proxy is as follows:

<application name="Diameter-Proxy" module="LogicApp">
    ...
    <config>
        <services>
            <service module="DiameterApp::DiameterLuaService" libs="../apps/diameter/lib" script_dir="../../n2iwf/lua/svc/agent/">
                <globals>
                    <global name="REQUIRE_HOOK_TO_PROXY">true</global>
                    <global name="HOOK_SCRIPT">local_hooks</global>
                </globals>
            </service>
        </services>
        ...
    </config>
</application>

The following points are relevant to LogicApp configuration for N2IWF when receiving and proxying inbound Diameter requests:

Lua Library Paths

For the lua_lib_path parameter in the LogicApp service, the following guidelines apply:

A full example default_lua_lib_path is:

<parameter name="default_lua_lib_path" value="../lua/lib/?.lua;../lua/lib/3rdparty/?.lua;../../n2iwf/lua/lib/?.lua;/etc/n2svcd/lua/?.lua/>

Compiled Lua

Any Lua libraries, both supplied by N-Squared and custom, may be pre-compiled by using the Lua compiler utility. If this is done, ensure that the lua_lib_path is updated to reflect the appropriate file suffix (.lc) as generated by the compiler.