beautypg.com

Getlastcall(type, callbackfunction), Removecall(id, flag, callbackfuntion) – Grandstream GXV3275 GMI Web Service Guide User Manual

Page 29

background image

GXV3240/3275 GMI Web Service v1.9 User Guide

Page 28 of 44

getLastCall(type, callbackFunction)

Description

Get the last call log (answered calls, dialed calls or missed calls)

entry information

Parameters

• type: Call log type. 0 - answered calls; 1 - dialed calls; 2 - missed

calls

• callbackFunction: Call back function

Http Request

• URL: "http://"+ ip + "/manager?"
• action: "getlastcall"
• type: "1"
• 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=getlastcall&type=1&format
=json&jsoncallback=?

Return

HTTP request return:
• Successful

"{"res": "success", "msg" : [{"id" : "15", "number" : "8107314",

"account" : "0", "isVideo", "0"}]}"

• Failed

"{"res" : "error", "msg" : "get last call failed"}"

• "type" wrong format

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

removeCall(id, flag, callbackFuntion)

Description

Remove call log

Parameters

• flag: Remove type. 1 - remove all the logs in answered calls,

dialed calls or missed calls; 2 - remove one call

• id: Call log identifier

flag=1, id=0 - remove all answered call log

flag=1, id=1 - remove all dialed call log

flag=1, id=2 - remove all missed call log

flag=0, id is the log ID - remove the log with id =ID

• callbackFunction: Call back function

Http Request

• URL: "http://"+ ip + "/manager?"
• action: "removeall"

This manual is related to the following products: