Skip to content

Call forwarding locally (lua)#

Example: Toggle Call forwarding locally on phone

call_fwd_locally.xml
<templates>
    <template prio="10" name="@string/call_forwarding_no_response_title" icon="@drawable/call_forwarding">
    <keyConfiguration>
      <lua><code><![CDATA[
pathPrefix = "/telephony/callForwarding/noResponse/"
require "callforward" -- inserts code from luaLibraries-settings, see explanation below
]]></code>
      </lua>
    </keyConfiguration>
    </template>
</templates>

require "callforward" loads the callforward-module which is defined within the luaLibraries