Savecallhistory(callbackfunction), Setupgrade(upgradeconf, reboot, callbackfunction) – Grandstream GXP2200 GMI Web Service Guide User Manual

Page 29

Advertising
background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 28 of 38

"{"res" : "error", "msg" : "wrong format"}"

30. saveCallHistory(callbackFunction)

Description

Save callhistory.xml

Parameters

callbackFunction: Call back function

HTTP Request

• url: "http://"+ ip + "/manager?"
• action: "savecallhistory"
• 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=savecallhistory&format=json&jsoncallback

=?

Return

HTTP request return:
• Save successful

"{"res": "success"}"

Note

After HTTP request returns saving successful, users could download callhistory.xml to

the phone with the following link:

http://192.168.121.230/callhistory/callhistory.xml

31. setUpgrade(upgradeConf, reboot, callbackFunction)

Description

• Set up upgrading configuration
• Configuration item structure. Each configuration item contains two fields with the

following format:

ConfItem

{

value; //P value

key; //nvram address (P parameter)

}
• The ConfItem list is as follows:
UpgradeConf

{

ConfItem updaterule //nvram address: 238

//0 - Always check for new firmware; 1 - check

//new firmware when FW prefix/suffix changes;

Advertising