Grandstream Networks GXV3175 Telephone User Manual


 
Grandstream Networks, Inc. GMI HTML SDK and API Guide Page 2 of 17
www.grandstream.com Last Updated: 07/2011
1 GMI V2.0 Overview
GMI (Grandstream Manager Interface) is a management API developed by Grandstream
Networks. Designed for our IP Multimedia phones, it allows partners to develop customized
applications on the phone.
GMI supports standard HTML/CSS/Javascript, users can use these dynamic web page
development languages to develop their customized application. GMI will display the
application on the phone based on the web pages generated.
Additionally, GMI provides several basic API functions (packaged in Javascript) to facilitate
users calling the existing applications on the multimedia phone or to obtain the phone status
etc. This allows users with basic web application programming skills to develop their
customized application on the multimedia phone, without the effort of learning a new
programming language. All that is required for the user is to understand how the GMI works
and how to use these simple APIs to interact with the phone.
GXV3175 supports GMI Verion 2.0. GMI V2.0 has two types of JavaScript interface:
simpleGMI: Provides a few simple and fast interfaces. It is highly efficient but has no
return value. Users could not obtain execution result nor interface for specific data.
GMIEngine: Provides return value(s) and enables users to obtain interface for specific
data and environment variables.
2 Remote GMI application
To add a GMI application to the multimedia phone, users need to add the following highlighted
lines of code in menu.xml (in GXV3175 XML GUI Customization Tool package):
<submenu func-name="tools">
<item func-name="ip2location"/>
<item func-name="filemanager"/>
<item func-name="calendar"/>
<item func-name="calculator"/>
<item func-name="alarmclock"/>
<link icon="icon/Grandstream.png" display-name="GMI" type="gmiapp">
<link-url>http://www.ipvideotalk.com/V2/</link-url>
</link>
</submenu>
The highlighted lines of code will add a menu selection “GMI” under your phone’s “Tools”