No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Administrator Guide

HUAWEI IP Phone 7920 and 7960 V600R006C00

Describes the deployment, configuration, and maintenance of HUAWEI IP Phone 7920/7960.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
XML App

XML App

This section describes how to enable the XML service and modify an XML file.

Prerequisites

  • You have configured the HTTP/HTTPS server. The following uses an Apache HTTP server as an example. For details about how to configure an Apache HTTP server, see Setting Up an HTTP Server.
  • You have placed the files that HUAWEI IP Phone 7920/7960 needs to access into the default path of the Apache HTTP server. The following uses C:\Program Files\Apache Software Foundation\Apache2.2\htdocs as an example.
    • If the required files are placed directly in the root directory (namely, htdocs folder in this example), enter the address in format of https://IP address of the PC where the Apache HTTP server is installed/XML file name to access the Apache HTTP server, for example, https://192.168.1.222/menu.xml.
    • If the required files are placed in a subfolder of the htdocs folder, enter the address in format of https://IP address of the PC where the Apache HTTP server is installed/Subfolder/XML file name to access the Apache HTTP server, for example, https://192.168.1.222/filename/menu.xml.

Context

The XML App service is to parse and display XML files downloaded from an HTTP/HTTPS server, on the user interface (UI) of HUAWEI IP Phone 7920/7960.

Configuration Methods

You can configure the XML App service using four different methods, as listed in Table 5-10.

Table 5-10 Configuration methods

Method

Details

eSight

On the eSight management portal, choose Resource > Collaboration Resource > Terminal Device Management > Deployment Management > Configuration file. Select the corresponding configuration file, click , and expand the configuration items. Click the Others tab and set related parameters on the page that is displayed.

TMS

Log in to the TMS and click the Subscriber/Device Operation tab. In the pane on the left of the window, click Data Model Tree. Deliver the configuration using the data model tree. Alternatively, use the TR-069 script to set related parameters.

DHCP Option 246

Set related parameters in the configuration file and deliver the new configuration file to the IP phone.

Web

On the phone web page, choose Advanced > Others. On the page that is displayed, set related parameters in the Third-Party Application Management area.

LCD

On the phone LCD screen, choose Apps > Advanced > XML App and set related parameters on the screen that is displayed.

Parameter Settings

Table 5-11 lists the XML App parameters that you must set.

Table 5-11 Parameter description

Parameter

Description

How to Set

How to Modify the Configuration File

XML App

Indicates whether to enable XML App.

Set XML App to Enable.

Default: Disable

Parameter: enableAPP

Location: Device > ComCfg > xmlAPP

Value: 0 or 1

  • 0: disables XML App.
  • 1: enables XML App.

Setting: Set enableAPP to 1.

Default: 0

Example: enableAPP="1"

Address

Indicates the directory of an XML file on the HTTP/HTTPS server.

Set this parameter depending on your needs. Using the Apache HTTP server as an example:

  • If the XML file is placed in the root directory (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs), set this parameter to https://IP address of the PC where the Apache HTTP server is installed/XML file name, for example, https://192.168.1.222/menu.xml.
  • If the XML file is placed in a subfolder of the root directory (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs), set this parameter to https://IP address of the PC where the Apache HTTP server is installed/Subfolder/XML file name, for example, https://192.168.1.222/filename/menu.xml.
NOTE:

If a programmable button has been configured as a shortcut button for accessing the directory of an XML file, you can directly press that programmable button to use the XML service.

Parameter: xmlServerAdd

Location: Device > ComCfg > xmlAPP

Example: xmlServerAddr="https://192.168.1.222/menu.xml"

Label Name

Indicates the name to be displayed under the XML App icon on the Apps screen.

Specify a name that you prefer.

Parameter: labelName

Location: Device > ComCfg > xmlAPP

Example: labelName="APP"

Configuration Example

You can edit XML files by referring to the following example.

This example describes the menu.xml file. (The menu.xml file is generally the first XML file that we access.)


 <?xml version="1.0" encoding="utf-8"?>  
 <xml> 
 <title>Service</title> 

 <body style="menu">  
 <item>  
  <text>Weather Forecast</text> 
  <number>89046</number> 
  <url>https://192.168.1.222/weather.xml</url> 
 </item> 
 <item>  
  <text>Advertisement</text> 
  <number>89047</number> 
  <url>https://192.168.1.222/ad.xml</url> 
 </item>  
 <item> 
  <text>News</text> 
  <number>89049</number> 
  <url>https://192.168.1.222/news.xml</url> 
 </item> 
 <item> 
  <text>Contacts</text> 
  <number>89050</number> 
  <url>https://192.168.1.222/contact.xml</url> 
 </item> 
 </body> 

 <softkeys> 
 <item> 
  <text>Select</text> 
  <action>Select</action> 
 </item> 

 <item> 
  <text>Back</text> 
  <action>Back</action> 
 </item> 

 <item> 
  <text>Call</text> 
  <action>Call</action> 
 </item> 

 <item> 
  <text>Edit Call</text> 
  <action>Editcall</action> 
 </item> 
 <item> 
  <text>Exit</text> 
  <action>Exit</action> 
 </item> 
 </softkeys> 

 </xml>

Contents in bold can be user-defined.

In <body style="menu">, menu indicates that an XML file is displayed in the form of a menu on HUAWEI IP Phone 7920/7960.

Figure 5-1 XML file interface in menu mode

In <body style="menu">, menu can be changed to text, which indicates the text form on HUAWEI IP Phone 7920/7960.

Figure 5-2 XML file interface in text mode
  • Weather Forecast is the name for an XML file displayed on HUAWEI IP Phone 7920/7960. This name is configurable.
  • 89046 is the SIP number for the XML file. This number is not displayed on HUAWEI IP Phone 7920/7960.
  • https://192.168.1.222/weather.xml is the path for the XML file on the Apache HTTP server. This path is configurable.
NOTE:

By default, XML files are placed under the htdocs folder of the Apache HTTP server.

The following uses the weather.xml file as an example.

<?xml version="1.0" encoding="utf-8"?> 
 <xml> 
 <title>Weather Forecast</title> 

 <body style="text"> 
 <item> 
  <picture x="30" y="30" width="100" height="120"src="https://192.168.5.203/weather.png">  
  </picture>  
  <text x="150" y="50" width="120" height="120">Sunny 2018/7/28</text> 
 </item> 
 <item> 
  <picture x="30" y="30" width="100" height="120"  
 src="https://192.168.5.203/weather1.png"> 
    </picture> 
  <text x="150" y="50" width="120" height="120">Cloudy 2018/7/29</text>  
 </item> 
 <item> 
  <picture x="30" y="30" width="100" height="120" 
 src="https://192.168.5.203/weather.png"> 
  </picture> 
  <text x="150" y="50" width="120" height="120">Overcast 2018/7/30</text>  
 </item>  
 <item>  
  <picture x="30" y="30" width="100" height="120" 
 src="https://192.168.5.203/weather.png"> 
  </picture> 
  <text x="150" y="50" width="120" height="120">Sunny to overcast 2018/7/31</text> 
 </item> 
 <item> 
  <picture x="30" y="30" width="100" height="120" 
 src="https://192.168.5.203/weather1.png">  
  </picture>  
  <text x="150" y="50" width="120" height="120">Rainy 2018/8/1</text> 
 </item> 
 </body> 

 <softkeys> 
 <item> 
 <text>Previous page</text> 
 <action>Previous</action> 
 </item> 
 <item> 
 <text>Next page</text> 
 <action>Next</action> 
 </item> 
 <item> 
 <text>Back</text> 
 <action>Back</action> 
 </item> 
 <item> 
 <text>Exit</text> 
 <action>Exit</action> 
 </item> 
 </softkeys> 
 </xml>

Use Weather Forecast as an example.

  • Weather Forecast must be the same as that in the above-mentioned menu.xml file.
  • x and y are two coordinates for picture and text display.
  • width and height correspond to the width and height for picture and text display.
  • https://192.168.5.203/weather.png is the path for the picture file on the Apache HTTP server.
NOTE:

By default, the picture file is placed under the htdocs folder of the Apache HTTP server.

  • Sunny 2018/7/28 is the text information displayed on the IP phone.

Follow-up Procedure

For details, see the HUAWEI IP Phone 7920 and 7960 XML Application Secondary Development Guide.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100036652

Views: 21644

Downloads: 46

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next