Grandstream Networks GXV3175 Telephone User Manual


 
Grandstream Networks, Inc. GMI HTML SDK and API Guide Page 15 of 17
www.grandstream.com Last Updated: 07/2011
var valueList = GMIEngine.get(“HoneyWell”,
“name&ip&password”);
If the variables have been set as below:
var ip = “192.168.1.220”;
var name = “admin”;
var password = “admin”;
GMIEngine.put(“HoneyWell”, “ip=” + ip + “&name=” +
name + “&password=” + password);
Then the following expression
var valueList = GMIEngine.get(“HoneyWell”,
“name&ip&password”)
will return {“name”: “admin”, “ip”: ”192.168.1.220”,
“password” : “admin”}
Note
This interface can be used with put() so the application
data can be read and written in GMI.
6 GMIEngine Environment Variables
GMI provides global variables so that users could obtain the device information from them.
The variable list and the descriptions are as below.
Variable Name Description
GMIEngine.version GMIEngine version
GMIEngine.ip Phone’s network IP address
GMIEngine.mask Phone’s subnet mask
GMIEngine.gateway Phone’s gateway IP
GMIEngine.dns Phone’s DNS IP
GMIEngine.mac Phone’s MAC address
GMIEngine.adressType Three types to get the IP address: DHCP/static/PPPoE
GMIEngine.natType NAT type
GMIEngine.accountActive Account active or not.