Grandstream GXV3275 GMI Web Service Guide Instrukcja Użytkownika Strona 9

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 45
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 44 45

Komentarze do niniejszej Instrukcji

Brak uwag