'Answer a Call' Report

The PBX will send a report to the application server when an extension answers a call. Answering call (the called party) and call answered (the calling party) coexist. In the report, the calling party's number will appear first.

Report Parameters

Name Type Description
action String Answer a call.
callid String A unique identifier of the call.
ext String Extension object.
extid String The extension number.
outbound

inbound

String Object parameter.
inboundid

outboundid

String The inbound ID/ outbound ID.
from String The caller number.
to String The callee number.
trunk String The name of the trunk that has been used.
sn String The PBX's serial number.

Report Examples

Extension 1005 calls to Extension 1006; Extension 1006 answers the call.
POST / HTTP/1.1
User-Agent: WebAPI

Content-Type: application/json
Accept: application/json

{
    "action": "ANSWER",
    "callid": "1547375031.65",
    "call": [
        {
            "ext": {
                "extid": "1006"
            }
        },
        {
            "ext": {
                "extid": "1005"
            }
        }
    ],
    "sn": "369362089179"
}
The external number 3834847222 calls to Extension 1005; Extension 1005 answers the call.
POST / HTTP/1.1
User-Agent: WebAPI


Content-Type: application/json
Accept: application/json

{
    "action": "ANSWER",
    "callid": "1547375509.72",
    "call": [
        {
            "ext": {
                "extid": "1005"
            }
        },
        {
            "inbound": {
                "from": "3834847222",
                "to": "1005",
                "trunk": "SPS-6-36",
                "inboundid": "1547375509.72"
            }
        }
    ],
    "sn": "369362089179"
}