Cisco IPPhone XML 技术文档

本文档详细介绍了Cisco IP Phone的各种XML对象,包括CiscoIPPhoneMenu、CiscoIPPhoneText、CiscoIPPhoneInput等,用于创建电话菜单、显示文本、输入表单等功能。每个对象的定义、属性和使用示例都有所涵盖,帮助开发者自定义IP电话的界面和交互。
摘要由CSDN通过智能技术生成

• CiscoIPPhoneMenu

• CiscoIPPhoneText

• CiscoIPPhoneInput

• CiscoIPPhoneDirectory

• CiscoIPPhoneImage

• CiscoIPPhoneImageFile

• CiscoIPPhoneGraphicMenu

• CiscoIPPhoneGraphicFileMenu

• CiscoIPPhoneIconMenu

• CiscoIPPhoneIconFileMenu

• CiscoIPPhoneStatus

• CiscoIPPhoneStatusFile

• CiscoIPPhoneExecute

• CiscoIPPhoneResponse

• 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.

InputFlag

Description

A

Plain ASCII textuse the DTMF keypad to enter text that consists of uppercase and lowercase letters, numbers, and special characters.

T

Telephone numberenter only DTMF digits for this field. The acceptable input includes numbers, #, and *.

N

Numericenter numbers as the only acceptable input.

E

Equationenter numbers and special math symbols.

U

Uppercaseenter uppercase letters as the only acceptable input.

L

Lowercaseenter lowercase letters as the only acceptable input.

P

Password fieldenter individual characters using the standard keypad-repeat entry mode. The system automatically converts accepted characters into an asterisk, keeping the entered value private.

 


Note P specifies the only InputFlag that works as a modifier. For example, specify a value of "AP" in the InputFlag field to use plain ASCII as the input type and to mask the input as a password by using an asterisk (*).

 


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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值