Getproductinfo(callbackfunction) – Grandstream GXP2200 GMI Web Service Guide User Manual
Page 9

GXP2200 GMI WEB SERVICE GUIDE V1.0
Page 8 of 38
7. getProductInfo(callbackFunction)
Description
Retrieve GXP2200 vendor and product information (login is not required)
Parameters
callbackFunction: Call back function
HTTP Request
• url: "http://"+ ip + "/manager?"
• action: "productinfo"
• 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=productinfo&format=json&jsoncallback=?
Return
1. HTTP request return:
• Return successful
"{"res": "success", "product": "GXP2200","vendor": "Grandstream Networks, Inc."}"
• Return failed
"{"res": "error", "msg" : "can't get product information"}"
2. callbackFunction(data) will process the data returned from HTTP request
8. originateCall(account, isvideo isdialplan, destnum, headerstring, callbackFunction)
Description
Make calls
Parameters
• account: account index (int type, the index value can be retrieved from
getAccountInfo interface)
• isvideo: audio call or video call. 0 - audio; 1 - video
• isdialplan: 0 or 1
• destnum: the number to be dialed
• headerstring: SIP request header
• callbackFunction: Call back function
HTTP Request
• url: "http://"+ ip + "/manager?"
• action: "originatecall"
• destnum: "8108819"
• account: 0
• isvideo: 0
• isdialplan: 0
• headerstring: ""
• format: "json"