• CiscoIPPhoneMenu
• CiscoIPPhoneError
CiscoIPPhoneMenu
A menu on the phone comprises a list of text items, one per line. Users choose
individual menu items by using the same mechanisms that are used for built-in
menus in the phone as described in “Overview”.
Definition
<CiscoIPPhoneMenu>
<Title>Title text goes here</Title>
<Prompt>Prompt text goes here</Prompt>
<MenuItem>
<Name>The name of each menu item</Name>
<URL>The URL associated with the menu item</URL>
</MenuItem>
<SoftKeyItem>
<Position>Numerical position of the soft key</Position>
<Name> Name of the soft key</Name>
<URL>URL of soft key</URL>
</SoftKeyItem>
</CiscoIPPhoneMenu>
Note : The Name field under the <MenuItem> supports a maximum of 64 characters. This field can also accept two carriage returns to allow the MenuItem name to span three lines on the display.
The XML format allows you to specify a title and prompt that are used for the entire menu, followed by a sequence of MenuItem objects. Cisco IP Phones allow a maximum of 100 MenuItems. Each MenuItem includes a Name and an associated URL. When a menu is loaded, the phone behaves the same as for built-in phone menus. The user navigates through the list of menu items and eventually chooses one by using either the Select softkey or the DTMF keys. 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.
Example:
<CiscoIPPhoneMenu>
<Title>Message List</Title>
<Prompt>Two Messages</Prompt>
<MenuItem>
<Name>Message One</Name>
<URL>QueryStringParam:message=1</URL>
</MenuItem>
<MenuItem>
<Name>Message Two</Name>
<URL>queryStringParam:message=2</URL>
</MenuItem>
<SoftKeyItem>
<Position>1</Position>
<Name>Exit</Name>
<URL>SoftKey:Exit</URL>
</SoftKeyItem>
</CiscoIPPhoneMenu>
<Position>1</Position> // If you choose one that is the first softkey buttons (from left to right),Can have up to five button.
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 IP Phone firmware controls all other pagination and wordwrap issues.
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>
<SoftKeyItem>
<Position>Numerical position of the soft key</Position>
<Name> Name of the soft key</Name>
<URL>URL of soft key</URL>
</SoftKeyItem>
</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 CallManager 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 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.
Example:
<CiscoIPPhoneText>
<Text>This object has one softkey named "Custom"</Text>
<SoftKeyItem>
<Name>Custom</Name>
<URL>http://someserver/somepage</URL>
<Position>4</Position>
</SoftKeyItem>
</CiscoIPPhoneText>
CiscoIPPhoneInput
When a Cisco 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.
Definition
<CiscoIPPhoneInput>
<Title>Directory title goes here</Title>
<Prompt>Prompt text goes here</Prompt>
<URL>The target URL for the completed input goes here</URL>
<InputItem>
<DisplayName>Name of the input field to display</DisplayName>
<QueryStringParam>The parameter to be added to the target
URL</QueryStringParam>
<DefaultValue>The default display name</DefaultValue>
<InputFlags>The flag specifying the type of allowable
input</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
The Title and Prompt tags in the object delimit text are used in the same way as the identical fields in the other CiscoIPPhone XML objects. The URL tag delimits the URL to which the input results are sent. The actual HTTP request sent to this server specifies the URL with a list of parameters that are
appended to it as a query string. The parameters include Name/Value pairs, one for each input item.
Note CiscoIPPhoneInput objects do not use the HTTP POST method.
The InputItem tag delimits each item in the list. The number of InputItems must not exceed five. Each input item includes a DisplayName, which is the prompt that is written to the display for that particular item. Each item also has a QueryStringParam, which is the name of the parameter that is appended to the URL when it is sent out after input is complete. Each input item can also use the
DefaultValue tag to set the default value to be displayed.The final attribute for each input item comprises a set of InputFlags. The following table describes the input types that are currently defined.
During text entry, Cisco IP Phones display softkeys to assist users with text entry.Users can navigate between fields with the vertical scroll button that is used to navigate menus, and so on.
Example:
<CiscoIPPhoneInput>
<Title>CiscoIPPhoneInput</Title>
<URL>http://192.168.2.46:8084/Test/index.jsp</URL>
<InputItem>
<DisplayName>Label1</DisplayName>
<QueryStringParam>label1</QueryStringParam>
<DefaultValue>false</DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
<InputItem