beautypg.com

Getphonemem, Getlinestatus – Grandstream GXP2200 GMI Web Service Guide User Manual

Page 36

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 35 of 38

37. getPhoneMem

Description

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

Parameters

• funcname: Process name

HTTP Request

• url: http://" + ip +"/manager?"
• action: "phoneMem"
• 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_phone&format

=json&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 physical memory of the process will be returned. For example, 3176

kB

• If the process memory is unknown or cannot get memory, "Unknown" will be

returned.

38. getLineStatus

Description

Get phone's line status (GMI version 8 or newer)

Parameters

• line: Line index number. From 0 to 2 for line 1 to line 3

HTTP Request

• url: http://" + ip +"/manager?"
• action: "lineStatus"
• 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=lineStatus&line=0

Return

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