Content

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Fetches the value of a variable from a phone module.

Syntax: var_ifc:mod_id::var_name

Example1: print variables from the language module

Code Block
languagexml
<?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:

Image Added


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

Code Block
languagexml
<?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>


Include Page
Howto Footer - uni-en
Howto Footer - uni-en

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "xml-minibrowser" and label = "callbacks" and type = "page"
labelsdect dect-multicell

Sv translation
languagede

Holt den Wert einer Variablen aus einem Telefonmodul

Syntax: var_ifc:mod_id::var_name

Beispiel 1: Variablen aus dem Sprachmodul ausgeben

Code Block
languagexml
<?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>


Ergebnis für ein Telefon, das mit englischer PUI-Sprache läuft:

Image Added


Beispiel 2: Monitorisierte Extensions ausgeben (und optional anrufen)

Code Block
languagexml
<?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>


Include Page
Howto Footer - de
Howto Footer - de

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "xml-minibrowser" and label = "callbacks" and type = "page"
labelsdect dect-multicell