XML/Minibrowser/SnomIPPhoneInput

From Snom User Wiki

< XML | Minibrowser(Difference between revisions)
Jump to: navigation, search
m (Text replace - 'http://snom.com/' to 'http://www.snom.com/')
 
Line 1: Line 1:
 +
#REDIRECT [[https://service.snom.com/display/wiki/IPPhoneInput]]
 +
==Overview==
==Overview==

Latest revision as of 16:57, 18 May 2019

  1. REDIRECT [[1]]

Overview

The <SnomIPPhoneInput> XML Object constructs an input form on the display. The user enters values and this will send the parameters to the target URL (server process).

Syntax

  • Sub Tags:
    • <Title>
    • <Prompt>
    • <URL> = target URL (server process)
    • <DisplayName>
    • <QueryStringParam> = QueryStringParam and DefaultValue can contain phone settings variables as arguments
    • <DefaultValue>
    • <inputflags>
      • a = for ASCII
      • t = telephonenumber
      • n = numbers
      • e = equations
      • u = uppercase
      • l = lowercase
      • p = password
      • pn = password numeric mode (version > 7.1.30)

Examples

<SnomIPPhoneInput>
<Title>Menu</Title>
<Prompt>Prompt</Prompt>
<URL>http://www.snom.com/minibrowser/server.php</URL>
<InputItem>
<DisplayName>send to srv</DisplayName>
<QueryStringParam>cookie=0x1023&number</QueryStringParam>
<DefaultValue/>
<InputFlags>a</InputFlags>
</InputItem>
</SnomIPPhoneInput>

Result:

Image:input.gif

Example for a server process that receives values from SnomIPhoneInput:

<?php
  parse_str($_SERVER['QUERY_STRING'],$vars);
  echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
  echo "<SnomIPPhoneText>";
  echo "<Text>";
  echo "cookie: " . $vars['cookie'] . "-";
  echo "The server received: " . $vars['number'];
  echo "</Text>";
  echo "<SoftKeyItem> <Name>0</Name>      
  <URL>http://www.snom.com/minibrowser/start.xml</URL> </SoftKeyItem>  
  <SoftKeyItem> <Name>*</Name> 
  <URL>http://www.snom.com/minibrowser/input.xml</URL> </SoftKeyItem>";
  echo "</SnomIPPhoneText>";
?>
Personal tools
Interoperability