beautypg.com

Getnetworkinfo(callbackfunction) – Grandstream GXP2200 GMI Web Service Guide User Manual

Page 10

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 9 of 38

• 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=originatecall&destnum=8108819&account=

0&isvideo=0&isdialplan=0&headerstring=&format=json&jsoncallback=?

Return

HTTP request return:
• Call originated

"{"res": "success", "msg": "call originated"}"

• Destination number is empty

"{"res": "error", "msg" : "destnum can't be null"}"

• Timeout

"{"res": "error", "msg" : "timeout"}"

• callbackFunction(data) will process the data returned from HTTP request

9. getNetworkInfo(callbackFunction)

Description

Retrieve GXP2200 network status

Parameters

callbackFunction: Call back function

HTTP Request

• url: "http://"+ ip + "/manager?"
• action: "network"
• 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=network&format=json&jsoncallback=?

Return

1. HTTP request return:

"{"res" : "success", "mac" : "00-0b-82-29-5c-a7", "ip" : "192.168.121.230", "mask" :

"255.255.255.0", "gateway" : "192.168.121.1", "dns" : "192.168.121.253", "type" :

"dhcp"}"

2. callbackFunction(data) will process the data returned from HTTP request