beautypg.com

Grandstream GXP2200 GMI Web Service Guide User Manual

Page 21

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 20 of 38

• 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=1downMode=2&down

Url=http://192.168.121.29/WebService/Phonebook.xml&downInterval=0&downRepl

ace=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"}"

• GXP2200 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=json

• Return:

"{"res": "success", "phbkresponse":"0"}"

• phbkresponse value:

0: Download successful (for downloading and importing)

1: Downloading

2: Contacts full (for downloading and importing)

3: Parse failed (For downloading and importing)

4: Downloading failed

5: Downloading mode is OFF

6: Download address invalid

8: File encoding format wrong

9: Importing (For importing)

10: File format invalid (for importing)