Grandstream GXV3275 GMI Web Service Guide Manual de usuario Pagina 9

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 45
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 8
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 (i
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
Vista de pagina 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 44 45

Comentarios a estos manuales

Sin comentarios