Grandstream GXV3275 GMI Web Service Guide Manual de usuario Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 45
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 23 of 44
the phone, then users
can download the phonebook.xml from link as
follow:
http://192.168.121.230/phonebook/phonebook.xml
2. Import phonebook
(1) Upload the local phonebook.xml to the phone first.
Then use the
HTTP POST method to send the phonebook
content.
HTTP request header:
http://192.168.121.230/upload?type=phonebook&format=json
(2) Import phonebook
URL: "http://" + ip +"/manager?"
action: "putportphbk"
flag: "1"
opmode: "0"
portEncode: "UTF-8"
portType: "0"
portReplace: "0"
portClear: "1"
format: "json"
jsoncallback: "?"
For example:
http://192.168.121.230/manager?action=putportphbk&opmode=0&fla
g=1&portType=0&portEncode=UTF-8&portReplace=0&portClear=1&
format=json&jsoncallback=?
Return
1. HTTP request return:
"putportphbk": Import successful
"{"res": "success", "flag":"1"}"
"putportphbk": Import failed
"{"res" : "error", "msg" : "configuration file not found"}"
"savephbk": Save successful
"{"res": "success"}"
2. callbackFunction(data) will process the
data returned from HTTP
request
Note
1. If the HTTP request returns "savephbk" successfully, users could
send HTTP requests to check whether the phonebook.xml saving
process is done. For example:
http://192.168.121.230/manager?action=portphbkresponse&format=j
son
Return:
Saving done:
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 44 45

Comentarios a estos manuales

Sin comentarios