en:products:comfortel-d-series:developer:keys:templates:examples:opendialscreen

OpenDialer

Example: Open dial-screen with prefilled number.

openDialerTemplate.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<templates>
<template prio="10" name="openDialer" icon="@drawable/script">
    <keyConfiguration>
      <lua>
        <code><![CDATA[
function onKeyUp()
      system.intent{action="android.intent.action.DIAL", component="de.auerswald.home/de.auerswald.phone.DialActivity", data="sip:"..uri}
end
--]]></code>
        <params>
          <param name="uri"/>
        </params>
      </lua>
    </keyConfiguration>
    <parameters>
      <parameter name="@string/uri"  type="text">
        <path>//param[@name="uri"]/value</path>
      </parameter>
    </parameters>
  </template>
</templates>
</configuration>
  • en/products/comfortel-d-series/developer/keys/templates/examples/opendialscreen.txt
  • Last modified: 22.03.2022 13:16
  • by hoehne