" /> Waiting time for abandoned call - Genesys CTI User Forum

Author Topic: Waiting time for abandoned call  (Read 1304 times)

Offline Noufal

  • Full Member
  • ***
  • Posts: 106
  • Karma: -6
Waiting time for abandoned call
« on: May 01, 2019, 11:43:01 AM »
Advertisement
Dear Experts ,

I looking for DB query to list Abandoned call (raw data fro icon or GIM ) with below details

Queue Name , CAll ANI , Abandoned waiting time .

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Waiting time for abandoned call
« Reply #1 on: May 01, 2019, 11:55:49 AM »
No other data (like, VQ enter date/time)? All of them or filter by specific group? If those fields are all that you want, and you want all of the calls that are on GIM database:

select
vq.resource_name as vq_name,
i.source_address as ani,
msf.end_ts - msf.start_ts as wait_time
from
mediation_segment_fact msf
inner join resource_ vq on vq.resource_key = msf.resource_key
inner join interaction_fact i on i.interaction_id = msf.interaction_id
inner join media_type mt on mt.media_type_key = msf.media_type_key
inner join technical_descriptor td on td.technical_descriptor_key = msf.technical_descriptor_key
where
mt.media_name_code = 'VOICE'
and vq.resource_type_code = 'QUEUE'
and vq.resource_subtype = 'VirtualQueue'
and td.technical_result_code in ('ABANDONED', 'CUSTOMERABANDONED');