PBX API : GET /CallHistory/:id/

To get a call history, make an HTTP GET request with basic authorization, resource URI:

http(s)://{PBX}/api/v1/CallHistory/:id/

GET Parameters

Required Parameters

NameDescription

Optional Parameters:

NameDefaultDescription

fields

All

A list of fields that should be returned

Example:

GET http://{PBX}/api/v1/CallHistory/3096/
 {
    "type":"result",
    "result":{
            "id": "3096",
            "answer": "2015-03-10 13:09:41",
            "billsec": "5",
            "disposition": "ANSWERED",
            "end": "2015-03-10 13:09:46",
            "faxdata": "",
            "from_name": "user1",
            "from_number": "111",
            "lastapp": "Dial",
            "start": "2015-03-10 13:09:39",
            "to_name": "user3",
            "to_number": "333",
            "channel": "SIP/333-000000aa",
            "dstchannel": "SIP/320-000000ab",
            "type": "call",
            "userfield": ""
    }
}