Skip to main content

CDR Processor

Pay Attention

The request will include the previously provided token. This is how you will associate the input with a specific contact session.

The request

The below is a sample of a CDR request. The CDR includes the final result of the call, its duration and billing related information.

POST /processInput HTTP/1.0.
Host: example.com:443.
X-Forwarded-For: 192.168.2.2.
Connection: upgrade.
Accept-Encoding: gzip.
Accept: */*.
Content-Type: application/json.

{
"timestamp": 1716239100,
"domain": "example.com",
"subscriber": 372,
"from": "12127773456",
"to": "63121233333",
"cx_trunk_id": null,
"application": 345,
"route": null,
"duration": 33,
"billsec": 31,
"disposition": "CONNECTED",
"rated_cost": null,
"approx_cost": null,
"sell_cost": null,
"vapp_server": "172.24.41.58",
"call_id": "315df9a833a762214873c11b49bf622a@XXX.XXX.XXX.XXX:5060",
"session": {
"id": 9812750,
"domainId": 3,
"domain": "example.com",
"destination": "63121233333",
"callerId": "12127773456",
"token": "16a7294c989b11e7b3d32b9edb8660c7",
"timeLimit": 0,
"profile": {
"callId": [
"315df9a833a762214873c11b49bf622a@XXX.XXX.XXX.XXX:5060"
],
"inbound-trunk-name": "fromPSTN",
"qos": {
"CHANNELQOS": "ssrc=1909495585;themssrc=0;lp=0;rxjitter=0.000000;rxcount=0;txjitter=0.000000;txcount=106;rlp=0;rtt=0.000000;rxmes=0.000000;txmes=0.000000",
"ssrc": "1909495585",
"themssrc": "0",
"lp": 0,
"rxjitter": 0,
"rxcount": 0,
"txjitter": 0,
"txcount": 106,
"rlp": 0,
"rtt": 0,
"rxmes": 0,
"txmes": 0,
"rx_mos": "NaN",
"tx_mos": 4.4
},
"application": [


],
"inbound-trunk-id": 610
},
"callStartTime": 1716239100387,
"callEndTime": 1716239134343,
"callAnswerTime": 1716239102610,
"status": "connected",
"vappServer": "172.24.41.58"
}
}

The response

HTTP/1.0 201 NO CONTENT.
Date: Mon, 22 Jul 2024 15:50:57 GMT.
Server: Apache/2.4.52 (Ubuntu).
Cache-Control: private, must-revalidate.
pragma: no-cache.
expires: -1.
Connection: close.
Content-Type: application/json.