getNetworkInfo(callbackFunction). Grandstream Networks GXV3275, GXV3240

Add to My manuals
41 Pages

advertisement

getNetworkInfo(callbackFunction). Grandstream Networks GXV3275, GXV3240 | Manualzz

9. getNetworkInfo(callbackFunction)

Description Retrieve GXV3240/GXV3275 network status

Parameters

Http Request

Return callbackFunction: Call back function

 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&jsonc allback=?

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

21.253", "type" : "dhcp"}"

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

10. getAccountInfo(callbackFunction)

Description Retrieve GXV3240/GXV3275 account information

Parameters

Http Request callbackFunction: Call back function

 url: "http://"+ ip + "/manager?"

 action: "accountStatus"

 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=status&format=json&jsoncall back=?

Return 1. HTTP request return:

{"Response":"Success","Data":[{"Index":"1","Server":"192.168.120.25

4","Number":"3882","Status":"1","Activate":"1"},

{"Index":"0","Server":"sip.ipvideotalk.com:48879","Number":"8118263

","Status":"1","Activate":"1"},

{"Index":"2","Server":"192.168.121.22","Number":"1001","Status":"1","

Activate":"1"}]}

2. String definition:

GXV3240/GXV3275 GMI WEB SERVICE GUIDE V1.9 Page 9 of 40

advertisement

Related manuals

advertisement

Table of contents