Skip to content
Thomas Pedersen edited this page Aug 28, 2013 · 1 revision

GET /call/list

Gives a list of calls in association with the phone.

Parameters.

none

Condition: Success.

HTTP 200 OK with a JSON list of calls.

[
    {
        "total_time": 12,
        "direction": "inbound",
        "conf_slot": 1,
        "last_code": 200,
        "uri": "<sip:[email protected];ob>",
        "call_id": "f9d7438c-8a90-1231-dd8a-0050569d426e",
        "last_reason": "OK",
        "remote_contact": "<sip:[email protected]:5060>",
        "state": 5,
        "contact": "<sip:[email protected]:8070;ob>",
        "role": 1,
        "state_text": "CONFIRMED",
        "media_dir": 3,
        "remote_uri": "\"Extension 1004\" <sip:[email protected]>",
        "call_time": 10,
        "media_state": "ACTIVE"
    }
]

Condition: Error.

HTTP 500 Server error with empty body.

Clone this wiki locally