Getproductinfo(callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 9
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 8 of 44
getProductInfo(callbackFunction)
Description
Retrieve GXV3240/GXV3275 vendor and product information (login
is not require). The interface is combined by getVendor and
getProduct.
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&js
oncallback=?
Return
1. HTTP request return:
• Return successful
"{"res": "success", "product": "GXV3240","vendor": "Grandstream
Networks, Inc."}"
"{"res": "success", "product": "GXV3275","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
originateCall(account, isvideo isdialplan, destnum, headerstring,
callbackFuntion)
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