XML API for Tiptel.com SIP Phones 31xx
Note: In this example, when the user presses "Ok" or "SoftKey:Submit" on the phone after entering "frank" for user
and "2222" for code, the phone will call the following URLs:
➢
http://myserver/action.php?User=frank&Code=2222&time=12:34&date=23.10.2012&selection=1, if the
"Ok" key is pressed while editing the "User" field,
➢
http://myserver/action.php?User=frank&Code=2222&time=12:34&date=23.10.2012&selection=2, if the
"Ok" key is pressed while editing the "Code" field.
Used XML objects:
XML object
Position
Type
Description
TiptelIPPhoneInputS
creen
Root tag
Mandatory Root element
Beep
Root tag
Optional
Set = "yes" to generate a notification beep by phone.
Default is "no"
type
Root tag
Mandatory Specifies the type of input. Posible values are: "IP",
"string", "number", "timeInt" and "dateInt"
Default is "string"
The type “number” includes integers plus * and #
password
Root tag
Optional
Specifies if the input is masked by '*' characters. Default
is "no"
editable
Root tag
Optional
Specifies if the user is allowed to modify the input.
Default is "no"
Page 22 / 50
<?
xml
version="1.0" encoding="UTF-8"?>
<
TiptelIPPhoneInputScreen
Timeout="180" type="string"
cancelAction="http://myserver/cancel_action.php"
>
<
Title
>I'm the title</
Title
>
<
Prompt
>Guidance</
Prompt
>
<
URL>
http://myserver/action.php</
URL>
<
InputField
type="string" editable="yes" >
<Prompt>User</Prompt>
<Parameter>User</Parameter>
<Default>Default 11111111111111</Default>
<Selection>1</Selection>
</
InputField
>
<
InputField
type="number" editable="yes" >
<Prompt>Code</Prompt>
<Parameter>Code</Parameter>
<Default></Default>
<Selection>2</Selection>
</
InputField
>
<
InputField
type="timeInt" editable="yes" >
<Prompt>input 3</Prompt>
<Parameter>time</Parameter>
<Default>12:34</Default>
<Selection>3</Selection>
</
InputField
>
<
InputField
type="dateInt" editable="yes" >
<Prompt>input 4</Prompt>
<Parameter>date</Parameter>
<Default>23.10.2012</Default>
<Selection>4</Selection>
</
InputField
>
</
TiptelIPPhoneInputScreen
>