Call log API

The service allows customers that want to manage their call history in their own system to call off Dstny’s API to retrieve call data for the entire organisation.

Build-in your statistics optionally

Call log API enables call data to be retrieved every five minutes for the last three months. You can then store it in your own system, SQL for example, and construct your own applications. You can also analyse your call data together with other business data. In other words, the service does not have a prepared interface (web page) where the information can be viewed, rather it is a service to move call data from our system to the customers’ own systems.

Perfect for the developer


Perfect for the developer


Call log API allows those who want to manage their own call history in their own systems to call off Dstny’s API in order to retrieve call data for the entire organisation. The information arrives as aggregated CDR data.

This is an example of how a response can look like from a switch

[
  {
    "callerNo": "+4672111111",
    "start": "2017-01-04T16:16:04.274+01:00",
    "receivingNo": "622",
    "received": "2017-01-04T16:16:10.279+01:00",
    "calleeNo": "+4672555555",
    "calleeAnswered": "2017-01-04T16:16:10.279+01:00",
    "stop": "2017-01-04T16:17:31.164+01:00"
  },
  {
    "callerNo": "+4672222222",
    "start": "2017-01-04T16:16:03.004+01:00",
    "receivingNo": "711",
    "received": "2017-01-04T16:16:10.279+01:00",
    "calleeNo": "+4672777777",
    "calleeAnswered": null,
    "stop": "2017-01-04T16:16:33.578+01:00"
  },
  {
    "callerNo": "+4672333333",
    "start": "2017-01-04T16:16:03.004+01:00",
    "receivingNo": "800",
    "received": null,
    "calleeNo": "+4672888888",
    "calleeAnswered": null,
    "stop": "2017-01-04T16:16:33.578+01:00"
  }    
]
What the fields means

What the fields means

callerNo – From which number the call came from.
start – Date and time of when the calling person dialed the number and lifted the handset.
receivingNo – Which no one first received the call. If this number is not empty, it is the number of a response group that can be “ATTENDANT”, “ACD”, “ACD Light” or “HUNT GROUP”. Note that, for example, “IVR” (tone selection menu) is excluded.
received – When the call was received, date and time, otherwise the value “null”
calleeNo – Number to first real person (user in exchange) who received the call.
calleeAnswered – Date and time of when the recipient answered the call. If the conversation for some reason was not answered, the value is “null”.
stop – Date and time of end of the call. Note that the call is counted as completed when the first person who received the call either left the handset or dialed the call.

Search for date and time periods

If you want to retrieve call history for a certain period of time, you can use the parameters “from” (= from) to “two” (= even). For example, the search may be between two o’clock the same day or span over several days.

Example:
https://api.dstny.se/cdr/historik?from=2017-01-04 08:00&to=2017-01-04 17:00
https://api.dstny.se/cdr/historik?from=2017-01-01 08:00&to=2017-01-04 17:00
https://api.dstny.se/cdr/historik?from=2017-01-04&to=2017-01-04