Grandstream GXV3275 GMI Web Service Guide Manual de usuario Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 45
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 10 of 44
getAccountInfo(callbackFunction)
Description
Retrieve GXV3240/GXV3275 account information
Parameters
callbackFunction: Call back function
Http Request
URL: "http://"+ ip + "/manager?"
action: "accountStatus"
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=status&format=json&jsoncall
back=?
Return
1. HTTP request return:
{"Response":"Success","Data":[{"Index":"1","Server":"192.168.120.25
4","Number":"3882","Status":"1","Activate":"1"},
{"Index":"0","Server":"sip.ipvideotalk.com:48879","Number":"8118263
","Status":"1","Activate":"1"},
{"Index":"2","Server":"192.168.121.22","Number":"1001","Status":"1","
Activate":"1"}]}
2. String definition:
Index: The account index. From 0 to 5 for account 1 to account 6.
This is the account index used in originateCall function.
Server: The SIP server address for the account.
Number: The account number.
Status: account status. 0 - unregistered; 1 and 2 -
registered; 3
and 5 - dialing; 4 - ringing; 6 - talking
Activate: account activated/deactivated. 1 - activated; 0 -
deactivated
getGroup(gpID, callbackFuntion)
Description
return information for all groups
Parameters
gpID: phonebook group ID
callbackFunction: Call back function
Http Request
URL: "http://"+ ip + "/manager?"
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 44 45

Comentarios a estos manuales

Sin comentarios