CDR Reports
CDR is raw data of all call activities. Records of all calls from the beginning to the end will be kept. When a call is released, the PBX will send a report to the application server in real time.
Report Parameters
Name | Type | Description |
action | String | Call event. |
timestart | String | The start time of the call. |
callfrom | String | The caller number. |
callto | String | The callee number. |
callduraction | String | The call duration. |
talkduraction | String | The talk duration. |
status | String | Call status. |
type | String | The call type. |
recording | String | The name of the call recording file. |
sn | String | The PBX’s serial number. |
Report Examples
Extension 106 calls to Extension 102.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:211
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"NewCdr",
"callid":"1589958682.2101",
"timestart":"2020-05-20 10:11:22",
"callfrom":"106",
"callto":"102",
"callduraction":"10",
"talkduraction":"5",
"status":"ANSWERED",
"type":"Internal",
"sn":"a09805021987"
}
Extension 106 calls to external number 101.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:213
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"NewCdr",
"callid":"1589958787.2118",
"timestart":"2020-05-20 10:13:07",
"callfrom":"106",
"callto":"16101",
"callduraction":"10",
"talkduraction":"5",
"status":"ANSWERED",
"type":"Outbound",
"sn":"a09805021987"
}
External user 101 calls to Extension 102.
POST HTTP/1.1
Host:172.16.6.150
Content-Length:210
Accept: application/json
Content-Type:application/json
Connection:close
{
"action":"NewCdr",
"callid":"1589959139.2135",
"timestart":"2020-05-20 10:18:59",
"callfrom":"101",
"callto":"102",
"callduraction":"10",
"talkduraction":"4",
"status":"ANSWERED",
"type":"Inbound",
"sn":"a09805021987"
}