beautypg.com

Getphonestatus – Grandstream GXP2200 GMI Web Service Guide User Manual

Page 35

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 34 of 38

HTTP Request

• url: http://" + ip +"/manager?"
• action: "gmiVersion"
• For example:

http://192.168.121.230/manager?action=gmiVersion

Return

GMI Version number. For example, 6. The version number increases by 1 on each new

GMI version.

36. getPhoneStatus

Description

Get phone's process status (GMI version 6 or newer)

Parameters

• funcname: Process name

HTTP Request

• url: http://" + ip +"/manager?"
• action: "phoneStatus"
• funcname: process name
• format: "json"
• jsoncallback: "?" (This is the HTTP request for the call back function, usually used in

AJAX and JQuery)

• For example:

http://192.168.121.230/manager?action=phoneStatus&funcname=gs_gui

http://192.168.121.230/manager?action=phoneStatus&funcname=gs_gui&format=js

on&jsoncallback=?

Return

• If the return data is retrieved in json format and there is jsoncallback, the return data

is as follows:

jsoncallback(S)

where jsoncallback is the callback function name

• Otherwise, the process status will be returned directly, for example, S. The status

are listed as below:

R: running

S: sleeping in an interruptible wait

D: waiting in uninterruptible disk sleep

Z: zombie

T: traced or stopped (on a signal)

W: paging

Unknown: unknown status or cannot get status return data