‘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 101 calls to Extension 106; Extension 106 answers the call.
POST / HTTP/1.1
User-Agent: WebAPI
Host: 192.168.5.150: 8260
Content-Type: application/json
Accept: application/json
{
"action": "ANSWER",
"callid": "1547375031.65",
"call": [
{
"ext": {
"extid": "1006"
}
},
{
"ext": {
"extid": "1005"
}
}
],
"sn": "369362089179"
}
The external number 103 calls to Extension 101; Extension 101 answers the call.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:175
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"ANSWER",
"callid":"1589953417.1743",
"ext":{
"extid":"101"
},
"inbound":{
"from":"103",
"to":"101",
"trunk":"to-18-16-2",
"inboundid":"1589953417.1743"
},
"sn":"a09805021987"
}