beautypg.com

Grandstream GXV3275 GMI Web Service Guide User Manual

Page 21

background image

GXV3240/3275 GMI Web Service v1.9 User Guide

Page 20 of 44

0------No

1------Yes

7. fileType: File Format

0------XML

1------Vcard

2------CSV

Http Request

Phone Download Operation:

• URL: "http://"+ ip + "/manager?"
• action: "putdownphbk"
• flag: "1" (Save the configuration and download phonebook)
• downMode: "2" (Download mode. 0: OFF, 1: TFTP, 2: HTTP)
• downUrl: Download phonebook URL
• downInterval: "0" (0: no automatic download)
• downReplace: "0" (replace duplicate items, 0: No, 1: Yes)
• downClear: "1" (clear old list, 0: No, 1: Yes)
• downEncode: "UTF-8" (phonebook file encoding format)
• 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=putdownphbk&flag=1downM
ode=2&downUrl=http://192.168.121.29/WebService/Phonebook.xml&
downInterval=0&downReplace=0&downClear=1&downEncode=UTF-8
&downtype=0&format=json&jsoncallback=?

Return

1. HTTP request return:
• Phonebook configuration saved

"{"res": "success", "flag":"1"}"

• Phonebook configuration cannot be saved

"{"res" : "error", "msg" : "configuration file not found"}"

• GXV3240/GXV3275 is rebooting

"{"res": "error", "msg" : "phone rebooting"}"

2. callbackFunction(data) will process the data returned from HTTP
request

Note

• In the HTTP request, if flag=1, when the phone is downloading and

importing phonebook, users could send HTTP request to check if

the downloading/importing is done.

• For example:

http://192.168.121.230/manager?action=phbkresponse&format=js

on

• Return:

This manual is related to the following products: