‘Call Released’ Report
The PBX will send two “BYE” reports to the 3rd-party application server when a call is released. In the first “BYE” report, the user who releases the call will appear first.
Report Parameters
Name | Type | Description |
action | String | Call is released. |
callid | String | A unique identifier of the call. |
ext | String | Extension object. |
extid | String | The extension number. |
inboundid | String | The inbound ID. |
outboundid | String | The outbound ID. |
outbound | String | Object parameter. |
inbound | String | Object parameter. |
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
In an internal call between Extension 101 and Extension 106; Extension 106 hangs up the call.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:93
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"BYE",
"callid":"1589953914.1775",
"ext":{
"extid":[
"106",
"101"
]
},
"sn":"a09805021987"
}
POST HTTP/1.1
Host:172.16.6.150
Content-Length:93
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"BYE",
"callid":"1589953914.1777",
"ext":{
"extid":[
"101",
"106"
]
},
"sn":"a09805021987"
}
In an outbound call between Extension 106 and external number 103; external user 103 hangs up the call.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:174
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"BYE",
"callid":"1589956488.1962",
"outbound":{
"from":"106",
"to":"103",
"trunk":"to-18-16-2",
"outboundid":"1589956488.1962"
},
"ext":{
"extid":"106"
},
"sn":"a09805021987"
}
POST HTTP/1.1
Host:172.16.6.150
Content-Length:174
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"BYE",
"callid":"1589956489.1964",
"ext":{
"extid":"106"
},
"outbound":{
"from":"106",
"to":"103",
"trunk":"to-18-16-2",
"outboundid":"1589956489.1964"
},
"sn":"a09805021987"
}