Skip to content

Speed dial (via function-tree)#

Example: speed dial template

speed_dial.xml
    <templates>
    <template prio="30" name="@string/speed_dial_title">
    <!-- This template is a plain copy of the original speeddial template.

    When using SIP subscriptions, the phones try to subscribe to the uri at the registrar. If
    the uri is an external number, it can't be subscribed, so the registrar will answer the
    subscriptions request with 404, causing and endless try-to-subscribe-loop. Some registrars
    (e.g. an AVM Fritz!Box), will blacklist devices, that send to much requests.
    Because those subscriptions to external numbers aren't possible at all, they should be 
    omitted completely.
    -->
    <keyConfiguration>
      <function>
        <invocations>
          <invocation>
            <invite>
              <uri/> <!-- will be filled by the uri-parameter -->
              <line>
                <id/> <!-- will be filled by the identity-parameter -->
              </line>
            </invite>
          </invocation>
        </invocations>
        <reactions>
          <reaction>
            <presence>
              <subscribe type="dialog">
                <uri/> <!-- will be filled via by the uri-parameter -->
                <line>
                  <id/> <!-- will be filled via by the identity-parameter -->
                </line>
              </subscribe>
            </presence>
          </reaction>
        </reactions>
      </function>
    </keyConfiguration>
    <parameters>
      <parameter name="uri">
         <!-- entered by user in phone-UI or on website when configuring this key-function.
              Will then be pasted-in above where these xpaths point to: -->
        <path>//subscribe/uri</path>
        <path>//invite/uri</path>
        <mode>append</mode>
      </parameter>
      <parameter optional="true" name="identity">
         <!-- entered by user in phone-UI or on website when configuring this key-function.
              Will then be pasted-in above where these xpaths point to: -->
        <path>//subscribe/line/id</path>
        <path>//invite/line/id</path>
      </parameter>
    </parameters>
    </template>
    </templates>