Getnetworkinfo(callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 10
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 9 of 44
• isdialplan: 0
• headerstring: ""
• 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=originatecall&destnum=810881
9&account=0&isvideo=0&isdialplan=0&headerstring=&format=json&jso
ncallback=?
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
getNetworkInfo(callbackFunction)
Description
Retrieve GXV3240/GXV3275 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&jsonc
allback=?
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.1
21.253", "type" : "dhcp"}"
2. callbackFunction(data) will process the data returned from HTTP
request