Call forwarding locally (lua)

Example: Toggle Call forwarding locally on phone

call_fwd_locally.xml
  1. <templates>
  2. <template prio="10" name="@string/call_forwarding_no_response_title" icon="@drawable/call_forwarding">
  3. <keyConfiguration>
  4. <lua>
  5. <code>pathPrefix = "/telephony/callForwarding/noResponse/"
  6. require "callforward"</code> <!-- inserts code from luaLibraries-settings, see explanation below -->
  7. </lua>
  8. </keyConfiguration>
  9. </template>
  10. </templates>

require “callforward” loads the callforward-module which is defined within the luaLibraries