<configuration name="lua.conf" description="LUA Configuration">
  <settings>

    <!--
    Specify local directories that will be searched for LUA modules
    These entries will be pre-pended to the LUA_CPATH environment variable
    -->
    <!--
    <param name="module-directory" value="/usr/local/lib/lua/5.2/?.so"/>
    <param name="module-directory" value="/usr/local/lib/lua/5.2/?"/>
    <param name="module-directory" value="/usr/lib/x86_64-linux-gnu/lua/5.2/?.so"/>
    -->

    <!--
    Specify local directories that will be searched for LUA scripts
    These entries will be pre-pended to the LUA_PATH environment variable
    -->
    <!-- <param name="script-directory" value="/usr/local/lua/?.lua"/> -->
    <param name="script-directory" value="$${script_dir}/?.lua"/>

    <!--
    Deliver XML from lua with the XML Handler
    -->
    <param name="xml-handler-script" value="app.lua xml_handler"/>
    <param name="xml-handler-bindings" value="configuration,dialplan,directory,languages"/>

    <!--
    The following options identifies a lua script that is launched
    at startup and may live forever in the background.
    You can define multiple lines, one for each script you
    need to run.
    -->

    <!-- FusionPBX: Support BLF for call flow -->
    <!-- There 2 way to handle this
      1 - Monitor - ignore SUBSCRIBE and just send NOTIFY each X seconds
      2 - Event handler - handle each SUBSCRIBE request
    -->
    <!--<param name="startup-script" value="call_flow_monitor.lua"/>-->
    <!--<param name="startup-script" value="blf_subscribe.lua flow"/>-->

    <!-- FusionPBX: Support BLF for DND -->
    <!--<param name="startup-script" value="blf_subscribe.lua dnd"/>-->

    <!-- FusionPBX: Support BLF for Call Forward -->
    <!--<param name="startup-script" value="blf_subscribe.lua forward"/>-->

    <!-- FusionPBX: Support BLF for Call Center Agents -->
    <!--<param name="startup-script" value="blf_subscribe.lua agent"/>-->

    <!-- FusionPBX: Support BLF for Voicemail -->
    <!--<param name="startup-script" value="blf_subscribe.lua voicemail"/>-->

    <!-- FusionPBX: Support MWI indicator-->
    <!-- There 2 way to handle this
      1 - Monitor - ignore SUBSCRIBE and just send NOTIFY each X seconds
      2 - Event handler - handle each SUBSCRIBE request
    -->
    <!--<param name="startup-script" value="app/voicemail/resources/scripts/mwi.lua"/>-->
    <!--<param name="startup-script" value="app/voicemail/resources/scripts/mwi_subscribe.lua"/>-->

    <!-- Subscribe to events -->
    <!--<hook event="PHONE_FEATURE_SUBSCRIBE" subclass="" script="app.lua feature_event"/>-->
  </settings>
</configuration>
