Voice Data integration description
Â
This document describes data structures that are used for reporting data.Â
Data types and formatsÂ
Data generation and storing
File naming
Data is exported in CSV-format, one csv-file per export type per day.
Export files are named useing following pattern: <date>_<orgname>_daily_<exporttype>.csv
 | Description | Example |
---|---|---|
<date> | Date in format YYYY-MM-DD | 2020-12-12 |
<orgname> | Organization name | exampleorg |
<exporttype> | Type of export | calldetails |
The resulting filename is 2020-12-12_exampleorg_daily_calldetails.csv, which contains calldetails export of date 2020-12-12.
There are two options for data generation: daily and intraday
Daily
All daily files are created at 0300 UTC, containing data from previous day.
Intraday
Export files are created as 00:15 UTC of current day
New data is added to the same file every 5mins.
Â
TimestampsÂ
All timestamps are in UTC time, unless specifically stated otherwise.Â
Phone numbersÂ
Phone numbers are stored in varchar columns. Numbers are normalized to E164 (+35850123...). Prefixing the numbers with plus-sign varies.
Â
Export file retention
When using Enreach provided SFTP service, generated data export files are removed after 30 days.
Call data exports
Call data is aggregated to two different structures:
Raw call event data is available for
Calculated data for calls are
Â
DirectCall contains calls made directly to (and by) an individual user. Same logical call can also exist in ServiceCall data in two cases:Â
User’s incoming calls are handled by BeneCC work number queue. In these cases, ServiceCall.email is that of the targeted user.Â
ServiceCalls where Queue name is null can be left out of standard reportingÂ
User’s incoming call is transferred to BeneCC. In these cases, ServiceCall.email is that of the targeted user, and Queue name is the first service pool call overflowed to.Â
Incoming DirectCalls where corresponding CallId exists in ServiceCall and Queue name is not null should be left out of combined reportsÂ
DirectCallÂ
A single DirectCall entry is created for a call targeting a user directly. It is a simple structure, containing only a single row with no complex sub-event structure that is required for service calls.Â
Export name: daily_directcall.csv
Column | Description |
---|---|
Id | Unique identifier for the entry |
CallId | Logical call entry is based on. A single call can result in multiple DirectCall entries for example when call is made from one known user to another and they both have their own entry |
Timestamp | Connection timestamp for connected calls, arrival timestamp for other |
TypeId | Call type. 0 for incoming, 1 for outgoing, 2 for Transfer |
email | email of the user |
ResultTypeId | Call result. 0 for answered, 1 for abandoned, 2 for transferred. |
ExternalNumber | External party of the call, caller for incoming and called number for outgoing |
UserNumber | User number, caller for outgoing and called number for incoming calls. |
Duration | Call answered duration in seconds for answered calls, 0 for others |
Modified | When entry was created or modified. Creation date in practice for now, entry is not modified afterwards. |
Â
ServiceCallÂ
A single ServiceCall entry is created for each logical call.Â
In current BeneCC use case, entry is first created with Ongoing result type when call connects to the system but is not yet completed. Result type is updated when call completes.Â
For reporting use, fetching calls with non-Ongoing result modified since last fetch should be effective.Â
Export name: daily_servicecall.csv
Column | Description |
---|---|
Id | Identifier for the logical call. Corresponds to DirectCall.CallId |
Timestamp | Time when call arrived in system |
queuename | Name of first queue call arrived in. Normally this means the queue corresponding to the called number.  If call arrived at user personal queue and overflowed to a real queue, this displays the first real queue after the overflow has occurred.  Null if call arrives to personal queue and never overflows to a real queue. |
email | Null for calls not arriving to personal queue. For personal queue use, email of the targeted user. |
ResultTypeId | Simplified call result. Processed directly from found ServiceCallDetail rows when call completes. Corresponds to ServiceCallResultTypes, types and logic described below. |
Anum | Original a-number of the call |
Bnum | Original b-number call was made to |
Modified | Modification timestamp. Creation time for new calls and updated when ResultTypeId is updated for completed calls. Used for fetching data to external systems. |
ServiceCallResultTypesÂ
ResultTypeId is calculated once when call completes. Result is calculated directly by finding a single latest event of types 102=QueueScheduleClosed, 201=UserAnswer, 204=UserTransfer, 300=QueueTransfer.Â
Id | Name | Description |
0 | Answered | Result if 201=UserAnswer is the last event |
1 | Abandoned | Result if not one of the others |
2 | Transfered out | Result if 204=UserTransfer 300=QueueTransfer is last event |
3 | OffSchedule | Result if 102=QueueScheduleClosed is last event |
1000 | Ongoing | Result when call is still ongoing and the final result is undetermined. |
ServiceCallDetailÂ
Each ServiceCall can have several individual events describing the progress of the call. They are the primary way of performing reporting, as they provide the most detailed info available and provide the flexibility for different kinds of needs.Â
Export name: daily_servicecalldetail.csv
Column | Description |
Id | Row identifie |
CallId | Id of ServiceCall event belongs t |
Timestamp | Event timestamp |
EventTypeId | Event type id. Corresponds to ServiceCallEventTypes.Id described belo |
QueueName | name of queue related to the even |
email of user related to the even | |
Reason | Descriptive, more detailed info about the event. Values are un-normalized and specific to the underlying system (currently BeneCC), so the column should be used sparingly |
Modified | Modified timestamp for the row, used for fetching data to external systems. |
Â
ServiceCallEventTypesÂ
EventTypes represent different events that occur during a call
Â
CallConnect (1)Â
Logged when call connects to the system.Â
Queue name is non-null if call was made to a number configured to a real queue.Â
Email is non-null if call was made to a number configured to a user.Â
Reason field in BeneCC use describes the type of the attempted target: PersonalWork for users, ServiceQueue for queues. In addition, Reason can also signal an error, for example if call was attempted to an unknown number NotInController is logged.
Â
CallDisconnect (2)Â
Logged when the entire call is disconnected and can be treated as complete. Â
Queue name and Email are always null.Â
Disconnect usually occurs when the caller disconnects either before or after the call is answered, or the answering user disconnects the call. The system itself can also disconnect the call for example when service is closed, and the relevant prompt has been played.Â
For BeneCC, reason field describes the disconnecting party: local for system disconnects, remote for disconnects triggered by a remote party (either the caller or the answering user).Â
Â
QueueArrive (100)Â
Logged when call is accepted and arrives to an individual queue. Allocation to agents is then attempted if available.Â
Queue name is always the queue call arrives in. If Email is non-null, call arrived to a personal queue with logged queue name.Â
For BeneCC, reason is always null.
Â
QueueReject (101)Â
Logged when queue rejects the call instead of accepting it. The event is not currently used for BeneCC-originated data.
Â
QueueScheduleClosed (102)Â
Logged when call connects to a specific queue that is closed for some reason at the time (usually outside of service hours).Â
Queue name is the queue that was targeted but is closed.Â
Email is always null.Â
For BeneCC, reason is always null.
Â
QueueOverflow (103)Â
Logged when call overflows from one queue to another for some reason.Â
Queue name is the attempted overflow target.Â
Email is always null.Â
For BeneCC, reason describes the technical reason for overflowing.Â
NoAvailableProviders: No users are available for allocationÂ
QueueFull: Maximum queue length was reachedÂ
QueueTimeout: Maximum queueing time was reached
Â
Â
QueueAllocateUser (200)Â
Logged when queue allocates the call to a user. Call can be allocated to multiple users at the same time.Â
Queue name is the allocating queue.Â
Email is the allocated user.Â
For BeneCC, Reason describes the type of allocating queue: PersonalWork for personal queues, ServiceQueue for real queues.Â
Â
UserAnswer (201)Â
Logged when user answers the allocated call.Â
Queue name is the allocating queue.Â
Email is the answering user.Â
For BeneCC, Reason describes the type of allocating queue: PersonalWork for personal queues, ServiceQueue for real queues.Â
Â
UserDisconnect (202)Â
Logged when user disconnects the call from UI (BeneDesk). Disconnects from terminals are not logged as separate UserDisconnect events but simply in CallDisconnect.Â
Queue name is the allocating queue.Â
Email is the disconnecting user.Â
For BeneCC, Reason is always null.
Â
UserReject (203)Â
Logged either when user rejects the allocated call actively or the allocation is cancelled for some reason.Â
Queue name is the allocating queue.Â
Email is the allocated user.Â
For BeneCC, Reason describes the reason for reject in more detail:Â
Timeout: Maximum allocation time was reached.Â
CallDisconnected: Call disconnected during allocation.Â
GenericUserRejected: User either rejected actively or was found to be unreachable for example due to terminal being busy.Â
OtherConnected: Another agent answered the call (for simultaneous allocation).
Â
UserTransfer (204)Â
Logged when answering user requests a call transfer using the UI (BeneDesk). Both internal and external transfers are logged identically, later events describe where the call was actually transferred to.Â
Queue name is the queue.Â
Email is the transferring user.Â
For BeneCC, Reason contains the transfer target number.
Â
UserPark (205)Â
Logged when answering user parks the call.Â
Queue name is the allocating queue.Â
Email is the answering user.Â
For BeneCC, Reason is always null.
Â
UserUnpark (206)Â
Logged when answering user unparks the call.Â
Queue name is the allocating queue.Â
Email is the answering user.Â
For BeneCC, Reason is always null.
UserOnHold (207)Â
Logged when answering user places the call on hold.Â
Queue name is the allocating queue.Â
Email is the answering user.Â
For BeneCC, Reason is always null.
Â
UserUnHold (208)Â
Logged when answering user retrieves the call from hold.Â
Queue name is the allocating queue.Â
Email is the answering user.Â
For BeneCC, Reason is always null.
Â
ExtQuery (250)Â
Logged when the system queries an external system for routing information, for example to check if the customer should be routed directly to a prioritized queue. Actual query functionality is implementation-specific and related to a custom project.Â
Queue name is logged if the query is caused by a queue configurationÂ
Email is logged if query is caused by user configurationÂ
Reason describes the query result. Value can vary by implementation, standard values areÂ
OK: query receives an acceptable resultÂ
NOT_FOUND: no results found
Â
ExtTarget (251)Â
Logged after an ExtQuery event to describe routing targets received in response. Possible targets are queues, users and direct numbers.Â
Queue name is logged if target is a queueÂ
Email is logged if target is a userÂ
Reason contains a semicolon-separated list of detailed information:Â
nbr: stored if target is a direct numberÂ
values: received target number (not necessarily normalized)Â
example:Â nbr=+358501231234Â
pr: if multiple targets are received, their relative priority (0 being the highest)Â
values: positive integerÂ
example:Â pr=0;Â
req: whether to wait for target for time specified in parameter ttl. This only applies to user targetsÂ
values: bit 0/1Â
example: req=0;Â
ttl: how long requirement is valid. Currently used in combination with req flag to require a specific userÂ
values: positive integer, secondÂ
example:Â ttl=30;
Â
QueueTransfer (300)Â
Logged when the call is transferred out of the system.Â
Queue name is always null.Â
Email is always null.Â
For BeneCC, Reason contains the transfer target number.
Â
QueueTransferConnect (301)Â
Logged when externally transferred call connects to the external system (e.g. the transfer was successful).Â
Queue name is always null.Â
Email is non-null if transfer targets a number mapped to a known user.Â
For BeneCC, Reason contains the target number.
Â
QueueTransferCancel (302)Â
Logged when external transfer is cancelled or fails. This occurs if the original caller disconnects during transfer, or if the transfer target rejects the incoming call.Â
Queue name is always null.Â
Email is non-null if transfer targets a number mapped to a known user.Â
For BeneCC, Reason contains the detailed reason for cancel or reject:Â
CallDisconnected: Original caller disconnected the callÂ
GenericUserRejected: Targeted user rejected the callÂ
Â
SupervisionStatus (320)
Supervision status for the call has been changed.
Reason contains supervisor name and status
<status>:<supervisor name>
Possible values for status: SilentlyListening, Whispering, Participating, Exited, Entered.
Â
IvrSelection (400)
Logged when caller has made (DTMF) IVR menu selection or entered some longer collected input.
Â
StartBlockingPrompt (401)
Logged when prompt playing that prevents allocation to agents has been started.
Â
WrapUpStarted (410)
Logged when agent wrap-up time started
Â
WrapUpTerminated (411)
Logged when agent wrap-up time was terminated
Â
CallbackCreated (500)
A callback request was created from the call
Queue is the last queue before leaving callback requests.
Reason contains Id of the Callback list the requests were created.
CallsExtended
Combined table consisting of both the Direct and Service Calls and with some measures already calculated at the call level. Contains usually one row per callid.
 Export name: daily_calls_extended.csv
Column | Description |
CallId | Logical call entry is based on. A single call can result in multiple entries for example when call is made from one known user to another and they both have their own entry |
Timestamp | Connection timestamp for connected calls, arrival timestamp for other |
EntryQueue | Name of the entry queue |
LastQueue | Name of the last queue |
ExternalNumber | External party of the call, caller for incoming and called number for outgoing |
UserNumber | User number, caller for outgoing and called number for incoming calls |
TotalWaitingTime | Total call waiting time duration in seconds |
TotalTalkingTime | Call talking duration in seconds  |
IVRClearedWaitingTime | Call waiting time duration in seconds, excluding time the call has been in IVR or pre-welcome stages |
ServiceCall | Is a service call, 1/0 |
DirectCall | Is a direct call, 1/0 |
Incoming | Is an incoming call, 1/0 |
Outgoing | Is an outgoing call, 1/0 |
Answered | Is an answered incoming call, 1/0 |
OutAnswered | Is an answered outgoing call, 1/0 |
Transferred | Is the call transferred outside, 1/0 |
Abandoned | Is an abandoned call (disconnected before answer), 1/0 |
Offschedule | Is the call a service call coming when the service pool is closed, 1/0 |
TransferredToService | Is the direct call overflown or transferred to service pool, 1/0 |
Modified | When entry was created or modified.  |
Â
CallDetails
Contains call details related to users and service queues with some measures already calculated. Contains usually multiple rows for each callid.
Export name: daily_calldetails.csv
Column | Description |
CallId | Logical call entry is based on. A single call can result in multiple entries for example when call is made from one known user to another and they both have their own entry. |
OrganisationId | Id for the customer organisation. |
Event_TS | Timestamp of the call flow event |
QueueId | Id of the service pool |
LastName | Name of service pool related to the event |
Title | Type of queue |
Email | email of user related to the event |
WaitingTime | call waiting time duration in seconds at user level. How long the call was allocated to a user before, it was answered, canceled or rejected. |
TalkingTime | Call talking duration in seconds at user level |
IVRWaitingTime | Time spent in IVR menu |
DirectCallWaitTime | Waiting time for direct calls |
QueueWaitingTime | Call waiting time duration in seconds at queue level |
QueueTalkingTime | Call talking duration in seconds at queue level |
ServiceCall | Is a service call, 1/0 |
DirectCall | Is a direct call, 1/0 |
CallConnects | Call has been connected to the queue, 1/0 |
UserAnswers | User has answered the call, 1/0 |
UserAllocate | Call is allocated (offered) to the user, 1/0 |
AnsweredInQueue | Is the service call answered in the queue, 1/0 |
Incoming | Is an incoming call, 1/0 |
Outgoing | Is an outgoing call, 1/0 |
TransferredToService | Is the direct call overflown or transferred to service pool, 1/0 |
Modified | When entry was created or modified.  |
ExternalNumber | Phone number of external party |
Â
Classification data exports
Classification data is exported in three different datasets
Classifications
ClassificationTags
ClassificationSchemas
ClassificationÂ
Classifications for calls or external events.Â
Column | Description |
Id | Unique id for classification |
Timestamp | Timestamp for conversation creation |
Tagschemaid | Tag schema id for classification |
Classifiedtypeid | Classified type: 1 – None, 2 – DirectCall, 3 – ServiceCall, 4 – Email, 5 – CallListItem |
Referencedcallid | If classification is related to calls, the corresponding Callid |
Referencedexternalid | If classification is related to external systems, the corresponding external id, e.g. message id |
Note | Classification note, free text |
Createdby | Email of classifying user |
Modified | When entry was created or modified.  |
Â
Export name: daily_clasification.csv
ClassificationTagsÂ
Tags for individual classifications.Â
Export name: daily_clasification_tags.csv
Column | Description |
ClassificationId | Unique id for classification. Corresponds to classification.id |
Tagid | Id for tag |
Tagdeleted | Is tag deleted (in classification),1/0 |
Modified | When entry was created or modified.  |
ClassificationTagSchemasÂ
Schema information for classification tags.Â
Export name: clasification_tag_schemas.csv
Column | Description |
Schemaid | Tag schema id |
Schemaname | Tag schema name |
Groupid | Tag group id |
Groupname | Tag group name |
Tagid | Tag id |
Schemaarchived | Is schema archived, 1/0 |
Schemadeleted | Is schema deleted, 1/0 |
Grouparchived | Is tag group archived, 1/0 |
Groupdeleted | Is tag group deleted, 1/0 |
Tagarchived | Is tag archived, 1/0 |
Tagdeleted | Is tag deleted (in schema), 1/0 |
Modified | When entry was created or modified.  |
Â
Callback data exports
CallHandling (callback)
Table consisting of combined presentation of callback request / attempt information.
Limitations to CallHandling -exports in cases where callback process is handled within Dynamics or Salesforce
Information from callback attempts are not reflected in these data exports.
Requests are closed automatically when they are moved from Enreach Voice services to Dynamics or Salesforce.
All callback requests are handled / closed by the same user (Salesforce or Dynamics Integration user)
 Export name: daily_call_handling.csv
Column | Description |
Key_id | Unique id for the callback attempt |
Name | Callback list to which the related request belongs |
Contactnumber | Number of the caller who left the callback request |
Assigneduser | User to who have the callback request has been assigned |
Channelin | Name of the service pool where the call arrived before callback request was created |
Creationtime | Creation time of the related callback request |
Callbackrequestid | Related callback request Id |
User | User who have made the callback attempt |
Timestamp | Timestamp of the callback attempt |
Callbackattemptypeid (CallBackAttemptType) | Type Id for the callback attempt, described below. |
Status | Status of the related callback request |
Difference | Difference in minutes from callback request creation to attempt. |
Noattempts | TBD |
Callbackattempt | Flag for callback attempt (1/0) |
Callbacksuccessful | Was callback attempt successful, 1/0 |
Callbacktypeid (CallBackRequestType) | Type id for the related callback request, described below |
Callid | Callid for the related callback request. Callback request can be identified from the call data exports via the callid. |
Clasificationid | Id for the related clasification |
Modified | When entry was created or modified.  |
CallbackAttemptType
Types of attempts that can be created. Different meanings for reporting/informational use, two main logical types (closing and not closing).
Name | Value | Description |
---|---|---|
Unknown | -1 | Unknown value |
CloseSuccessful | 0 | Closes request, handled successfully |
CloseUnsuccessful | 1 | Closes request, was not handled |
Busy | 2 | Contact was busy |
NoAnswer | 3 | Contact did not answer |
OtherAnswered | 4 | Voicemail, switchboard or some other target answered |
Other | 5 | Other unspecified |
Noattempts | 6 | No attempts have been made. Used for filtering requests. |
CloseExpired | 7 | Closes request, expired |
CallbackRequestType
Different types for callback requests
Name | Value | Description |
---|---|---|
Unknown | 0 | Unknown value. Provided for backwards compatibility, should be disregarded |
Callback | 1 | Callback item |
Overflow | 2 | Overflow item |
CallList | 3 | Call list item |
Any | 50 | Symbolic "any". Requests cannot actually be this type, used for filtering |
Â
Â
© Enreach, Mannerheimintie 117, 00280 Helsinki, Finland
+358 40 450 3000, www.enreach.fi