List Running Calls


This request returns the running PBX calls of the user’s device.

The device must be registered with the server.

Resource

GET /me/device/calls

Parameters

None

Payload

None

Response

List of the currently running calls of this device.

Context

Authorization

User

Device Registration

Device with a phone number

Errors

HTTP code Xelion code Description

404

10050

The device is not registered with the session.

10052

The device is registered but its phone number is unknown.

Example

Request
GET https://xelion.nl/api/v1/master/me/device/calls
Response
{
    "data": [
        {
            "object": {
                "channelId": "1610035217.1460",
                "state": "Up",
                "callDate": "2021-01-07 16:00:27",
                "callDirection": "Inbound",
                "localName": "Arno",
                "localNumber": "+31642060837",
                "localAddressable": {
                    "commonName": "Arno",
                    "oid": "1650938",
                    "objectType": "Person"
                },
                "phoneLine": {
                    "commonName": "Telefoonaansluiting Arno",
                    "oid": "1651130",
                    "objectType": "XCCPhoneLine"
                },
                "personalLine": true,
                "remoteName": "Xelion B.V.",
                "remoteNumber": "+31152511411",
                "remoteAddressable": {
                    "commonName": "Xelion B.V.",
                    "oid": "1041861",
                    "objectType": "Organisation"
                }
            }
        }
    ],
    "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "httsp://xelion.nl/api/v1/master/me/device/calls",
                "method": "GET"
            }
        ]
    }
}