Shows the details for abandoned calls in the detailed interaction data – Expands all the GUIDs with their lookups
CREATE VIEW vwcallabandonedsummary AS (
SELECT det.conversationid,
det.conversationstartdate,
det.conversationstartdateltc,
det.conversationenddate,
det.conversationenddateltc,
det.segmentstartdate,
det.segmentstartdateltc,
det.segmentenddate,
det.segmentenddateltc,
det.convtosegmentendtime AS totalcalltime,
det.segmenttime AS queuetime,
(det.convtosegmentendtime / 86400.00) AS totalcalltimeday,
(det.segmenttime / 86400.00) AS queuetimeday,
det.ani,
det.dnis,
det.queueid,
que.name AS queuename,
det.purpose,
det.segmenttype,
det.disconnectiontype
FROM (detailedinteractiondata det
LEFT JOIN queuedetails que ON (((det.queueid)::text = (que.id)::text)))
WHERE (((det.segmenttype)::text = ANY ((ARRAY['delay'::character varying, 'Interact'::character varying, 'alert'::character varying])::text[])) AND ((det.purpose)::text = 'acd'::text) AND ((det.disconnectiontype)::text = 'peer'::text) AND (det.conversationenddate = det.segmentenddate))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
conversationid | varchar(50) | true | Conversation ID | |||
conversationstartdate | timestamp without time zone | true | Conversation Start Date(UTC) | |||
conversationstartdateltc | timestamp without time zone | true | Conversation Start Date(LTC) | |||
conversationenddate | timestamp without time zone | true | Conversation End Date(UTC) | |||
conversationenddateltc | timestamp without time zone | true | Conversation End Date(LTC) | |||
segmentstartdate | timestamp without time zone | true | Segment Start Date(UTC) | |||
segmentstartdateltc | timestamp without time zone | true | Segment Start Date(LTC) | |||
segmentenddate | timestamp without time zone | true | Segment End Date(UTC) | |||
segmentenddateltc | timestamp without time zone | true | Segment End Date(LTC) | |||
totalcalltime | numeric(20,2) | true | Total Call Time | |||
queuetime | numeric(20,2) | true | Queue Time | |||
totalcalltimeday | numeric | true | Total Call Time per Day | |||
queuetimeday | numeric | true | Queue Time per Day | |||
ani | varchar(400) | true | ANI | |||
dnis | varchar(400) | true | DNIS | |||
queueid | varchar(50) | true | Queue GUID | |||
queuename | varchar(255) | true | Queue Name | |||
purpose | varchar(50) | true | Purpose | |||
segmenttype | varchar(50) | true | Segment Type | |||
disconnectiontype | varchar(50) | true | Disconnection Type |
Name | Columns | Comment | Type |
---|---|---|---|
public.detailedinteractiondata | 101 | Conversation Detailed Data | BASE TABLE |
public.queuedetails | 17 | Queue Lookup data | BASE TABLE |