2-4
Cisco Unified IP Phone Services Application Development Notes
OL-18696-01
Chapter 2 CiscoIPPhone XML Objects
XML Object Definitions
After the user chooses a menu option, the phone generates an HTTP request for the page with the URL
or executes the uniform resource identifiers (URIs) that are associated with the menu item.
CiscoIPPhoneText
The
CiscoIPPhoneText
XML object displays ordinary 8-bit ASCII text on the phone display. The
<Text>
message must not contain any control characters, except for carriage returns, line feeds, and tabs. The
Cisco Unified IP Phone firmware controls all other pagination and wordwrap issues.
Note
Cisco Unified IP Phones support the full ISO 8859-1 (Latin 1) and Shift_JIS character sets.
Definition
<CiscoIPPhoneText>
<Title>Title text goes here</Title>
<Prompt>The prompt text goes here</Prompt>
<Text>The text to be displayed as the message body goes here</Text>
</CiscoIPPhoneText>
Two optional fields can appear in the XML message:
•
The first optional field,
Title
, defines text that displays at the top of the display page. If a
Title
is
not specified, the
Name
field of the last chosen
MenuItem
displays in the
Title
field.
•
The second optional field,
Prompt
, defines text that displays at the bottom of the display page. If a
Prompt
is not specified, Cisco Unified Communications Manager clears the prompt area of the
display pane.
Many XML objects that are described in this document also have
Title
and
Prompt
fields. These fields
normally behave identically to behavior described in this section.
Note
Non-XML Text
: This document only describes the supported CiscoIPPhone XML objects. You can also
deliver plain text via HTTP. Pages that are delivered as MIME type text/html behave exactly the same as
XML pages of type
CiscoIPPhoneText
. One important difference is that you cannot include a title or
prompt.
Note
Keypad navigation
: Cisco Unified IP Phones allow navigation to a specific line in a menu by pressing
numeric DTMF keys. When a menu is on the display, the number for selecting the menu is on the left.
When normal text displays, the numbers do not display on the left side of the screen, but the navigation
capability still exists. So, a carefully written text service display can take advantage of this capability.
CiscoIPPhoneInput
When a Cisco Unified IP Phone receives an XML object of type
CiscoIPPhoneInput
, it constructs an
input form and displays it. The user then enters data into each input item and sends the parameters to the
target URL.
Figure 2-1
shows a sample display that is receiving input from a user.