10 Call History
10.1 Export
POST https://<HOST>:<PORT>/app/monitor/callhistory/export/v0?version=0
To determine the paramters for this request it is recommended to use the "Call History Export Assistant". To do so open the anynode frontend user interface and navigate to Monitor ModeCall HistoryExport.
Required Permissions
-
API
-
Monitoring Mode Read Access
Example
POST http://127.0.0.1:8999/app/monitor/callhistory/export/v0
x-www-form-urlenceded Parameter
filterDateTimePeriod : "THIS_MONTH"
template : "<#macro escape strValue>${strValue?json_string}</#macro>
[
<#list sessions as session>
{
"Start Date/Time": "<@escape '${session.startDateTime?string["yyyy-MM-dd HH:mm:ss"]}'/>",
"Source Dial String (Inbound)": "<@escape '${session.inboundSourceDialString!""}'/>",
"Destination Dial String (Outbound)": "<@escape '${session.outboundDestinationDialString!""}'/>",
"Session Identifier": "<@escape '${session.sessionIdentifier!""}'/>"
}<#sep>,
</#sep></#list>]"
filterCount : "2"
HTTP Response
HTTP/1.1 200 OK
HTTP Response Body
<html>
<body>[
{
"Start Date/Time": "2023-11-13 13:34:43",
"Source Dial String (Inbound)": "40",
"Destination Dial String (Outbound)": "",
"Session Identifier": "3DE4032C2BB8E4A64C9A4D53FF3E2EDF"
},
{
"Start Date/Time": "2023-11-13 13:34:43",
"Source Dial String (Inbound)": "40",
"Destination Dial String (Outbound)": "",
"Session Identifier": "2905BDAD422D459B9FE16B75306272C9"
}]</body>
</html>
10.2 Export Recorded Session
GET https://<HOST>:<PORT>/app/monitor/callhistory/recording/v0?version=0
Returns the file of a recorded session.
Required Permissions
-
API
-
Tracing
Request parameters
-
file
The filename of the recoding. The filename consists of the session id and the file type (i.e. "4C0E930A91081A010DBA8BFF48F10B76.wav").