Content

Page tree

Fetches the value of a variable from a phone module.

Syntax: var_ifc:mod_id::var_name

Example1: print variables from the language module

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneText>
    <Text>
        state:$(var_ifc:lang.pui.ENGLISH::state)
        <br />
        name:$(var_ifc:lang.pui.ENGLISH::name)
        <br />
        file_name:$(var_ifc:lang.pui.ENGLISH::file_name)
    </Text>
</SnomIPPhoneText>


Result for a phone running in English PUI language:


Example 2: print (and optionally call) all online monitored extensions

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu>
  <Title>Call online monitored extensions</Title>
  <Repeat value_key="$(var_ifc:BusyLampField::get_monitored_extensions,$(current_line))" token="|__NAME__|__NUMBER__|__INDEX__|">
    <If condition="!$(empty:__NAME__)">
      <MenuItem name="__NAME__" id="__NUMBER__">
        <Url>phone://mb_exit#action_ifc:BusyLampField=handle_selected,contact_number=__NUMBER__</Url>
      </MenuItem>
    </If>
    <Else>
      <MenuItem name="__NUMBER__" id="__NUMBER__">
        <Url>phone://mb_exit#action_ifc:BusyLampField=handle_selected,contact_number=__NUMBER__</Url>
      </MenuItem>
    </Else>
  </Repeat>
</SnomIPPhoneMenu>